diff options
| author | tv <tv@krebsco.de> | 2026-11-23 21:04:19 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-23 21:04:19 +0000 |
| commit | 35de496b57dfb8a9293c7f0002f1621119745bd4 (patch) | |
| tree | 1ac26242adefd13d2aa2a3b6e1b052dfd9b32fb4 /systems | |
| parent | 1f398930604bde76da7a0af0fa73aceff4c4c6d2 (diff) | |
oxi: init
Diffstat (limited to 'systems')
| -rw-r--r-- | systems/oxi/config.nix | 44 | ||||
| -rw-r--r-- | systems/oxi/spec.nix | 4 |
2 files changed, 48 insertions, 0 deletions
diff --git a/systems/oxi/config.nix b/systems/oxi/config.nix new file mode 100644 index 00000000..cebf95ef --- /dev/null +++ b/systems/oxi/config.nix @@ -0,0 +1,44 @@ +{ modulesPath, ... }: { + imports = [ + (modulesPath + "/profiles/qemu-guest.nix") + ]; + + boot.loader.systemd-boot.enable = true; + boot.loader.efi.canTouchEfiVariables = true; + + networking.hostName = "oxi"; + + 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; + + system.stateVersion = "23.05"; +} diff --git a/systems/oxi/spec.nix b/systems/oxi/spec.nix new file mode 100644 index 00000000..8f2178b7 --- /dev/null +++ b/systems/oxi/spec.nix @@ -0,0 +1,4 @@ +{ + system = "x86_64-linux"; + target = "root@oxi.i/var/src"; +} |
