From f88b81672aa7c98380cc8e21ebba4911fc801d8d Mon Sep 17 00:00:00 2001 From: Vegard Bieker Matthey Date: Sun, 8 Feb 2026 00:05:45 +0100 Subject: [PATCH] skrot: init --- flake.nix | 1 + hosts/skrot/configuration.nix | 24 +++++++++++++++++++++ hosts/skrot/hardware-configuration.nix | 30 ++++++++++++++++++++++++++ values.nix | 4 ++++ 4 files changed, 59 insertions(+) create mode 100644 hosts/skrot/configuration.nix create mode 100644 hosts/skrot/hardware-configuration.nix diff --git a/flake.nix b/flake.nix index b533518..2be210f 100644 --- a/flake.nix +++ b/flake.nix @@ -184,6 +184,7 @@ }; ildkule = stableNixosConfig "ildkule" { }; #ildkule-unstable = unstableNixosConfig "ildkule" { }; + skrot = stableNixosConfig "skrot" { }; shark = stableNixosConfig "shark" { }; wenche = stableNixosConfig "wenche" { }; temmie = stableNixosConfig "temmie" { }; diff --git a/hosts/skrot/configuration.nix b/hosts/skrot/configuration.nix new file mode 100644 index 0000000..5a976c3 --- /dev/null +++ b/hosts/skrot/configuration.nix @@ -0,0 +1,24 @@ +{ + fp, + lib, + values, + ... +}: + +{ + imports = [ + # Include the results of the hardware scan. + ./hardware-configuration.nix + (fp /base) + ]; + + systemd.network.networks."enp2s0" = values.defaultNetworkConfig // { + matchConfig.Name = "enp2s0"; + address = with values.hosts.skrot; [ + (ipv4 + "/25") + (ipv6 + "/64") + ]; + }; + + system.stateVersion = "26.05"; # Did you read the comment? +} diff --git a/hosts/skrot/hardware-configuration.nix b/hosts/skrot/hardware-configuration.nix new file mode 100644 index 0000000..a33c6a1 --- /dev/null +++ b/hosts/skrot/hardware-configuration.nix @@ -0,0 +1,30 @@ +# 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 + "/installer/scan/not-detected.nix") + ]; + + boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-amd" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/0dfcdb69-80ce-429f-8504-200754b240e6"; + fsType = "ext4"; + }; + + fileSystems."/etc" = + { device = "overlay"; + fsType = "overlay"; + }; + + swapDevices = [ ]; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +} diff --git a/values.nix b/values.nix index 6c46165..98edfe6 100644 --- a/values.nix +++ b/values.nix @@ -85,6 +85,10 @@ in rec { ipv4 = pvv-ipv4 235; ipv6 = pvv-ipv6 235; }; + skrot = { + ipv4 = pvv-ipv4 237; + ipv6 = pvv-ipv6 237; + }; temmie = { ipv4 = pvv-ipv4 167; ipv6 = pvv-ipv6 167;