ctucx.git: nixfiles

ctucx' 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 

{ inputs, lib, currentSystem, ... }:

{

  disabledModules = [
    "services/misc/gitolite.nix"
    "services/web-apps/gotosocial.nix"
  ];

  imports = (builtins.concatLists [
    (if (currentSystem == "x86_64-linux") then [
     inputs.agenix.nixosModules.default
     ./linux/restic-backups.nix
     ./linux/vnstati
     ./linux/gitolite.nix
     ./linux/email-notify.nix
     ./linux/dns.nix
     ./linux/gotosocial.nix
     ./linux/nginx-sni-proxy.nix
     ./linux/minecraft-bedrock-server.nix
    ] else [])
    (if (currentSystem == "aarch64-darwin") then [
      inputs.agenix.darwinModules.default
      ./darwin/quirks.nix
      ./darwin/hidutil.nix
      ./darwin/syncthing.nix
      ./darwin/skhd.nix
    ] else [])
    (if (currentSystem == "x86_64-darwin") then [
      inputs.agenix.darwinModules.default
      ./darwin/quirks.nix
      ./darwin/hidutil.nix
      ./darwin/syncthing.nix
      ./darwin/skhd.nix
    ] else [])
  ]);

  options = {
    networking.usePBBUplink  = lib.mkOption { type = lib.types.bool; default = false; };
    networking.primaryIP     = lib.mkOption { type = lib.types.str; default = ""; };
    networking.primaryIP4    = lib.mkOption { type = lib.types.str; default = ""; };
    networking.secondaryIP4  = lib.mkOption { type = lib.types.str; default = ""; };
  };

}