diff options
author | tv <tv@krebsco.de> | 2023-07-03 14:05:12 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2023-07-03 14:05:12 +0200 |
commit | 0f9512d699b3eed35fe23d1f95085f84fbf5c0b9 (patch) | |
tree | 532b3a252569a7ff263d3ac939f4464079804051 /example/config.nix | |
parent | 83fba08b6edfaea68c6b6571391eaf045c57d3f3 (diff) |
move example configuration to subdirectory
Diffstat (limited to 'example/config.nix')
-rw-r--r-- | example/config.nix | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/example/config.nix b/example/config.nix new file mode 100644 index 0000000..5e57f59 --- /dev/null +++ b/example/config.nix @@ -0,0 +1,48 @@ +{ modulesPath, ... }: { + imports = [ + (modulesPath + "/profiles/qemu-guest.nix") + ]; + + boot.loader.systemd-boot.enable = true; + boot.loader.efi.canTouchEfiVariables = true; + + networking.hostName = throw "insert yout hostname here"; + + boot.kernelParams = [ + "console=ttyS0" + "console=tty1" + "nvme.shutdown_timeout=10" + "libiscsi.debug_libiscsi_eh=1" + "net.ifnames=0" + ]; + + boot.initrd.kernelModules = [ + "nvme" + ]; + boot.kernelModules = [ + "kvm-amd" + ]; + + networking.useDHCP = false; + networking.interfaces.eth0.useDHCP = true; + + fileSystems."/" = { + device = "/dev/disk/by-label/root"; + fsType = "ext4"; + }; + fileSystems."/boot" = { + device = "/dev/disk/by-label/boot"; + fsType = "vfat"; + }; + swapDevices = [{ + device = "/dev/disk/by-label/swap"; + }]; + + services.openssh.enable = true; + + users.users.root.openssh.authorizedKeys.keys = [ + (throw "insert your ssh key here") + ]; + + system.stateVersion = "23.05"; +} |