Compare commits
7 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
afc57dd0f7 | ||
|
|
8aa655b7e5 | ||
|
|
c0845067ef | ||
|
|
a5e6f5dd7c | ||
|
|
864cd65fa5 | ||
|
|
efb3ac119e | ||
|
|
c3413cbe84 |
2 changed files with 62 additions and 0 deletions
|
|
@ -29,4 +29,8 @@ in
|
|||
hardware.framework-16-7040-amd
|
||||
];
|
||||
};
|
||||
vm = {
|
||||
system = "x86_64-linux";
|
||||
targetHost = "192.168.122.110";
|
||||
};
|
||||
}
|
||||
|
|
|
|||
58
hosts/vm/configuration.nix
Normal file
58
hosts/vm/configuration.nix
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
let
|
||||
sshKeys = {
|
||||
jalr = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIH3l+Yixrsjhze20CSjvUK4Qj/BNqbTNitgk20vuzPej cardno:25_750_479" ];
|
||||
};
|
||||
in
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
htop
|
||||
];
|
||||
|
||||
boot = {
|
||||
loader.grub.enable = false;
|
||||
initrd = {
|
||||
enable = true;
|
||||
systemd.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
services.getty.autologinUser = "root";
|
||||
|
||||
fileSystems."/" = {
|
||||
fsType = "tmpfs";
|
||||
options = [ "mode=0755" ];
|
||||
};
|
||||
|
||||
services.openssh.enable = true;
|
||||
users.users = {
|
||||
jalr = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "wheel" ];
|
||||
openssh.authorizedKeys.keys = sshKeys.jalr;
|
||||
};
|
||||
root.openssh.authorizedKeys.keys = sshKeys.jalr;
|
||||
};
|
||||
security.sudo.wheelNeedsPassword = false;
|
||||
|
||||
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
desktopManager.gnome.enable = true;
|
||||
displayManager = {
|
||||
autoLogin = {
|
||||
enable = true;
|
||||
user = "jalr";
|
||||
};
|
||||
gdm = {
|
||||
autoSuspend = false;
|
||||
enable = true;
|
||||
wayland = true;
|
||||
};
|
||||
};
|
||||
exportConfiguration = true;
|
||||
};
|
||||
|
||||
system.stateVersion = "25.05";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue