summary refs log tree commit diff
path: root/machines
diff options
context:
space:
mode:
Diffstat (limited to 'machines')
-rw-r--r--machines/serpentine/default.nix10
-rw-r--r--machines/serpentine/devices.nix17
-rw-r--r--machines/serpentine/hardware.nix37
-rw-r--r--machines/serpentine/home.nix8
4 files changed, 72 insertions, 0 deletions
diff --git a/machines/serpentine/default.nix b/machines/serpentine/default.nix
new file mode 100644
index 0000000..fc99002
--- /dev/null
+++ b/machines/serpentine/default.nix
@@ -0,0 +1,10 @@
+{ ... }:
+
+{
+  imports = [
+    ./hardware.nix
+    ./devices.nix
+  ];
+
+  system.stateVersion = "25.05";
+}
diff --git a/machines/serpentine/devices.nix b/machines/serpentine/devices.nix
new file mode 100644
index 0000000..f79ca38
--- /dev/null
+++ b/machines/serpentine/devices.nix
@@ -0,0 +1,17 @@
+{ config, pkgs, ... }:
+
+{
+  boot = {
+    kernelPackages = pkgs.linuxPackages_latest;
+
+    loader.systemd-boot.enable = true;
+    loader.efi.canTouchEfiVariables = true;
+  };
+
+  zramSwap = {
+    enable = true;
+    algorithm = "zstd";
+    swapDevices = 1;
+    memoryPercent = 50;
+  };
+}
diff --git a/machines/serpentine/hardware.nix b/machines/serpentine/hardware.nix
new file mode 100644
index 0000000..80b22ba
--- /dev/null
+++ b/machines/serpentine/hardware.nix
@@ -0,0 +1,37 @@
+# Do not modify this file!  It was generated by ‘nixos-generate-config’
+# and may be overwritten by future invocations.  Please make changes
+# to /etc/nixos/configuration.nix instead.
+{ config, lib, pkgs, modulesPath, ... }:
+
+{
+  imports =
+    [ (modulesPath + "/profiles/qemu-guest.nix")
+    ];
+
+  boot.initrd.availableKernelModules = [ "ata_piix" "virtio_pci" "virtio_scsi" "sd_mod" "virtio_blk" ];
+  boot.initrd.kernelModules = [ ];
+  boot.kernelModules = [ "kvm-amd" ];
+  boot.extraModulePackages = [ ];
+
+  fileSystems."/" =
+    { device = "/dev/disk/by-uuid/6f4738f1-ccb0-4976-8d83-177fd6eafa28";
+      fsType = "ext4";
+    };
+
+  fileSystems."/boot" =
+    { device = "/dev/disk/by-uuid/0656-5677";
+      fsType = "vfat";
+      options = [ "fmask=0077" "dmask=0077" ];
+    };
+
+  swapDevices = [ ];
+
+  # Enables DHCP on each ethernet and wireless interface. In case of scripted networking
+  # (the default) this is the recommended approach. When using systemd-networkd it's
+  # still possible to use this option, but it's recommended to use it in conjunction
+  # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
+  networking.useDHCP = lib.mkDefault true;
+  # networking.interfaces.ens2.useDHCP = lib.mkDefault true;
+
+  nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
+}
diff --git a/machines/serpentine/home.nix b/machines/serpentine/home.nix
new file mode 100644
index 0000000..feefa87
--- /dev/null
+++ b/machines/serpentine/home.nix
@@ -0,0 +1,8 @@
+{ pkgs, ... }:
+
+{
+  imports = [
+  ];
+
+  home.stateVersion = "25.05";
+}