diff --git a/flake.nix b/flake.nix index 2bdf8a6..71a36c4 100644 --- a/flake.nix +++ b/flake.nix @@ -173,6 +173,7 @@ #ildkule-unstable = unstableNixosConfig "ildkule" { }; shark = stableNixosConfig "shark" { }; wenche = stableNixosConfig "wenche" { }; + temmie = stableNixosConfig "temmie" { }; kommode = stableNixosConfig "kommode" { overlays = [ diff --git a/hosts/temmie/configuration.nix b/hosts/temmie/configuration.nix new file mode 100644 index 0000000..523c517 --- /dev/null +++ b/hosts/temmie/configuration.nix @@ -0,0 +1,37 @@ +{ config, fp, pkgs, values, ... }: +{ + imports = [ + # Include the results of the hardware scan. + ./hardware-configuration.nix + (fp /base) + ]; + + # sops.defaultSopsFile = fp /secrets/shark/shark.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.systemd-boot.enable = true; + boot.loader.efi.canTouchEfiVariables = true; + + networking.hostName = "temmie"; # Define your hostname. + + systemd.network.networks."30-ens18" = values.defaultNetworkConfig // { + matchConfig.Name = "ens18"; + address = with values.hosts.temmie; [ (ipv4 + "/25") (ipv6 + "/64") ]; + }; + + # List packages installed in system profile + environment.systemPackages = with pkgs; [ + ]; + + # List services that you want to enable: + + # This value determines the NixOS release from which the default + # settings for stateful data, like file locations and database versions + # on your system were taken. It‘s perfectly fine and recommended to leave + # this value at the release version of the first install of this system. + # Before changing this value read the documentation for this option + # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). + system.stateVersion = "25.11"; # Did you read the comment? +} diff --git a/hosts/temmie/hardware-configuration.nix b/hosts/temmie/hardware-configuration.nix new file mode 100644 index 0000000..3669043 --- /dev/null +++ b/hosts/temmie/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 + "/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/c3aed415-0054-4ac5-8d29-75a99cc26451"; + fsType = "btrfs"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/A367-83FD"; + fsType = "vfat"; + options = [ "fmask=0022" "dmask=0022" ]; + }; + + swapDevices = [ ]; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; +} diff --git a/values.nix b/values.nix index 3e7a4ac..cc758ec 100644 --- a/values.nix +++ b/values.nix @@ -73,6 +73,10 @@ in rec { ipv4 = pvv-ipv4 234; ipv6 = pvv-ipv6 234; }; + temmie = { + ipv4 = pvv-ipv4 167; + ipv6 = pvv-ipv6 167; + }; wenche = { ipv4 = pvv-ipv4 240; ipv6 = pvv-ipv6 240;