From c7c2fa78a40b90d2c28cdd9acb41107300ce7e35 Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 4 Jul 2023 19:29:10 +0200 Subject: config.nix -> configuration.nix --- example/config.nix | 48 ----------------------------------------------- example/configuration.nix | 48 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+), 48 deletions(-) delete mode 100644 example/config.nix create mode 100644 example/configuration.nix (limited to 'example') diff --git a/example/config.nix b/example/config.nix deleted file mode 100644 index 5e57f59..0000000 --- a/example/config.nix +++ /dev/null @@ -1,48 +0,0 @@ -{ 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"; -} diff --git a/example/configuration.nix b/example/configuration.nix new file mode 100644 index 0000000..5e57f59 --- /dev/null +++ b/example/configuration.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"; +} -- cgit v1.2.3