summaryrefslogtreecommitdiff
path: root/hosts/default.nix
blob: fdaea60ebd4ebd601d6090d272f2f8e379fc3a9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
inputs:
with inputs; let
  common = {
    system = "x86_64-linux";
    stateVersion = "23.05";
    pkgs = nixpkgsUnstable;
    modules = with inputs; [
      agenix.nixosModules.default
      home-manager.nixosModules.home-manager
      nur.nixosModules.nur
      {
        age = {
          identityPaths = ["/etc/age/key"];
          secrets = {
            rootPassword.file = ../users/secrets/rootPassword.age;
            sethPassword.file = ../users/secrets/sethPassword.age;
          };
        };
      }
    ];
  };
in {
  glados = {
    modules =
      common.modules
      ++ [
        nixos-hardware.nixosModules.common-cpu-amd-pstate
        nixos-hardware.nixosModules.common-gpu-nvidia-nonprime
        nixos-hardware.nixosModules.common-pc-ssd
        lanzaboote.nixosModules.lanzaboote
      ];
    inherit (common) system stateVersion pkgs;
  };
  glados-wsl = {
    modules =
      common.modules
      ++ [
        nixos-wsl.nixosModules.wsl
      ];
    inherit (common) system stateVersion pkgs;
  };
}