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 { config, lib, ... }:

{

  imports = [
    ./prometheus-exporters.nix
    ./restic-server.nix
    ./dns.nix
    ./syncthing.nix
    ./syncthing-nginx.nix

    ./systemd-lock-handler.nix

    ./swaylock.nix
    ./waybar.nix
    ./mako.nix
    ./wlsunset.nix

    ./pipewire.nix
    ./easyeffects.nix
    ./gvfs.nix
  ];

  ctucxConfig.monitoring.exporters.enable  = (lib.mkDefault (if (config.networking.primaryIP != "") || (config.networking.primaryIP4 != "") then true else false));
  ctucxConfig.services.dnsServer.enable    = (lib.mkDefault (builtins.elem "dnsServer" config.deployment.tags));
  ctucxConfig.services.resticServer.enable = (lib.mkDefault (builtins.elem "resticServer" config.deployment.tags));

}