From 35de496b57dfb8a9293c7f0002f1621119745bd4 Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 23 Nov 2026 21:04:19 +0000 Subject: oxi: init --- systems/oxi/config.nix | 44 ++++++++++++++++++++++++++++++++++++++++++++ systems/oxi/spec.nix | 4 ++++ 2 files changed, 48 insertions(+) create mode 100644 systems/oxi/config.nix create mode 100644 systems/oxi/spec.nix (limited to 'systems') 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"; +} -- cgit v1.3.1