zaphyra's git: nixfiles

zaphyra's nixfiles

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 
43 
44 
45 
46 
47 
48 
49 
50 
51 
52 
53 
54 
55 
56 
57 
58 
59 
60 
61 
62 
63 
64 
65 
66 
67 
68 
69 
70 
71 
{

  system = "x86_64-linux";
  nixpkgsStable = true;

  id = 6;
  domain = "fc9f.de";

  sshPublicKey = "";
  wgPublicKey = "";

  hardware = {
    cpuVendor = "intel";
    allowHibernation = false;
  };

  networking = {
    dn42 = {
      ip6Address = "fd6b:6174:6a61::6";
      ip6PrefixLength = 128;
    };
  };

  nixosConfiguration = _: {
    sops.secrets = {
      wgPrivateKey = {
        owner = "systemd-network";
        group = "systemd-network";
      };
    };

    common = {
      configure.rootDisk.swap = {
        enable = true;
        size = "16G";
      };

      profiles = {
        nvme.enable = true;
      };

      programs = {
        shellUtilities.enable = true;
        nixUtilities.enable = true;
      };

      services = {
        greetd.autoLogin = {
          enable = true;
          user = "zaphyra";
        };
      };
    };

    zpha = {
      configure = {
        cccdaWifi.enable = true;
      };

      profiles = {
        zaphyra.enable = true;
        graphical.enable = true;
      };

      services = {
        keyd.enable = true;
      };
    };
  };

}