diff options
-rw-r--r-- | systems/oai/config.nix | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/systems/oai/config.nix b/systems/oai/config.nix new file mode 100644 index 0000000..b802c7e --- /dev/null +++ b/systems/oai/config.nix @@ -0,0 +1,42 @@ +{ modulesPath, pkgs, ... }: { + imports = [ + (modulesPath + "/profiles/qemu-guest.nix") + ]; + + boot.loader.systemd-boot.enable = true; + boot.loader.efi.canTouchEfiVariables = true; + + networking.hostName = "oai"; + + boot.kernelParams = [ + "console=ttyS0" + "console=tty1" + "nvme.shutdown_timeout=10" + "libiscsi.debug_libiscsi_eh=1" + "net.ifnames=0" + ]; + + boot.initrd.kernelModules = [ + "nvme" + ]; + + networking.useDHCP = false; + networking.interfaces.eth0.useDHCP = true; + + environment.systemPackages = [ + pkgs.vim + ]; + + fileSystems."/" = { + device = "/dev/disk/by-label/root"; + fsType = "ext4"; + }; + fileSystems."/boot" = { + device = "/dev/disk/by-label/boot"; + fsType = "vfat"; + }; + + services.openssh.enable = true; + + system.stateVersion = "23.05"; +} |