diff --git a/flake.nix b/flake.nix index 069c2fc..fcf04a6 100644 --- a/flake.nix +++ b/flake.nix @@ -116,6 +116,7 @@ ildkule = stableNixosConfig "ildkule" { }; #ildkule-unstable = unstableNixosConfig "ildkule" { }; shark = stableNixosConfig "shark" { }; + wenche = stableNixosConfig "wenche" { }; ustetind = stableNixosConfig "ustetind" { modules = [ diff --git a/hosts/wenche/configuration.nix b/hosts/wenche/configuration.nix new file mode 100644 index 0000000..2791a19 --- /dev/null +++ b/hosts/wenche/configuration.nix @@ -0,0 +1,31 @@ +{ config, fp, pkgs, values, ... }: +{ + imports = [ + # Include the results of the hardware scan. + ./hardware-configuration.nix + (fp /base) + (fp /misc/metrics-exporters.nix) + + (fp /misc/builder.nix) + ]; + + sops.defaultSopsFile = fp /secrets/wenche/wenche.yaml; + sops.age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ]; + sops.age.keyFile = "/var/lib/sops-nix/key.txt"; + sops.age.generateKey = true; + + boot.loader.grub.device = "/dev/sda"; + + networking.hostName = "wenche"; # Define your hostname. + + systemd.network.networks."30-ens18" = values.defaultNetworkConfig // { + matchConfig.Name = "ens18"; + address = with values.hosts.wenche; [ (ipv4 + "/25") (ipv6 + "/64") ]; + }; + + # List packages installed in system profile + environment.systemPackages = with pkgs; [ + ]; + + system.stateVersion = "24.11"; # Did you read the comment? +} diff --git a/hosts/wenche/hardware-configuration.nix b/hosts/wenche/hardware-configuration.nix new file mode 100644 index 0000000..42840be --- /dev/null +++ b/hosts/wenche/hardware-configuration.nix @@ -0,0 +1,24 @@ +{ config, lib, pkgs, modulesPath, ... }: + +{ + imports = + [ (modulesPath + "/profiles/qemu-guest.nix") + ]; + + boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/4e8ecdd2-d453-4fff-b952-f06da00f3b85"; + fsType = "ext4"; + }; + + swapDevices = [ ]; + + networking.useDHCP = lib.mkDefault false; + # networking.interfaces.ens18.useDHCP = lib.mkDefault true; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; +} diff --git a/values.nix b/values.nix index cd8e26d..4e91599 100644 --- a/values.nix +++ b/values.nix @@ -64,6 +64,10 @@ in rec { ipv4 = pvv-ipv4 234; ipv6 = pvv-ipv6 234; }; + wenche = { + ipv4 = pvv-ipv4 240; + ipv6 = pvv-ipv6 240; + }; }; defaultNetworkConfig = {