nix: update nixpkgs
[sourcephile-nix.git] / nixos / modules.nix
index d62ffc3f806827cf548470a3801d801f7df8109b..c33316e4845b42c2fb6c7fda3373d78186523d85 100644 (file)
@@ -1,33 +1,75 @@
-{ pkgs, lib, config, ... }:
+{ inputs, ... }:
 # NOTE: list explicitely the modules loaded by defaults.nix,
 # its clearer, safer and more flexible if not quicker.
-{ imports = [
-  modules/services/mail/dovecot.nix
-  modules/services/networking/domains.nix
-  modules/services/networking/shorewall.nix
-  modules/services/networking/shorewall6.nix
-  #modules/services/security/x509.nix
-  ];
-}
-
-/*
-# NOTE: this modules.nix file is put in the imports of the configuration.nix,
-# but using the lib.findFiles defined in the nixpkgs.overlays leads to an infinite recursion,
-# hence it is redefined here:
-let findFiles = pattern:
-      with builtins;
-      let go = curr:
-        let dir = readDir curr; in
-        let files = lib.filterAttrs (name: type:
-          type == "regular" &&
-          match pattern name != null) dir; in
-        let dirs = lib.filterAttrs (name: type: type == "directory") dir; in
-        map (name: "${curr}/${name}") (attrNames files) ++
-        lib.concatMap (name: go "${curr}/${name}") (attrNames dirs)
-        ;
-      in root: go (toPath root);
-in
 {
-  imports = findFiles ".*\\.nix" ./modules;
+  imports = [
+    #modules/services/databases/openldap.nix
+    #modules/services/mail/public-inbox.nix
+    modules/services/misc/radicle.nix
+    #modules/services/databases/redis.nix
+    modules/services/mail/postfix.nix
+    modules/services/networking/upnpc.nix
+    #modules/services/networking/wireguard.nix
+    #modules/services/security/tor.nix
+    modules/services/backup/syncoid.nix
+    modules/services/networking/prosody.nix
+    #modules/services/backup/sanoid.nix
+    #modules/services/torrent/transmission.nix
+    #modules/services/logging/logrotate.nix
+    #modules/security/gnupg.nix
+    #modules/services/networking/biboumi.nix
+    #modules/services/networking/croc.nix
+    #modules/services/networking/netns.nix
+    #modules/services/networking/openvpn.nix
+    #/home/julm/src/nix/nixpkgs/.git-worktree/transmission/nixos/modules/services/torrent/transmission.nix
+    #/home/julm/src/nix/nixpkgs/nixos/modules/services/torrent/transmission.nix
+    #modules/services/mail/mlmmj.nix
+    #modules/services/games/freeciv.nix
+    #modules/tasks/network-interfaces.nix
+    #modules/services/misc/sourcehut/default.nix
+    #modules/security/wrappers/default.nix
+    #modules/config/console.nix
+    #modules/services/x11/display-managers/default.nix
+    modules/services/networking/prosody.nix
+    #modules/security/systemd-confinement.nix
+    (inputs.julm-nix + "/nixos/modules/security/systemd-creds.nix")
+    (inputs.julm-nix + "/nixos/modules/services/networking/wireguard.nix")
+  ];
+  disabledModules = [
+    #"config/console.nix"
+    #"services/x11/display-managers/default.nix"
+    #"tasks/network-interfaces.nix"
+    "services/mail/mlmmj.nix"
+    #"security/gnupg.nix"
+    #"services/mail/public-inbox.nix"
+    #"services/security/tor.nix"
+    "services/backup/syncoid.nix"
+    "services/misc/radicle.nix"
+    "services/networking/prosody.nix"
+    #"security/systemd-confinement.nix"
+    #"services/networking/biboumi.nix"
+    #"services/networking/croc.nix"
+    #"services/networking/netns.nix"
+    #"services/networking/openvpn.nix"
+    #"services/torrent/transmission.nix"
+    #"services/games/freeciv.nix"
+    #"services/backup/sanoid.nix"
+    #"services/networking/wireguard.nix"
+    #"services/databases/redis.nix"
+    #"services/misc/sourcehut"
+    #"services/misc/sourcehut/default.nix"
+    #"services.misc/sourcehut/git.nix"
+    #"services.misc/sourcehut/hg.nix"
+    #"services.misc/sourcehut/hub.nix"
+    #"services.misc/sourcehut/todo.nix"
+    #"services.misc/sourcehut/man.nix"
+    #"services.misc/sourcehut/meta.nix"
+    #"services.misc/sourcehut/paste.nix"
+    #"services.misc/sourcehut/builds.nix"
+    #"services.misc/sourcehut/lists.nix"
+    #"services.misc/sourcehut/dispatch.nix"
+    #"services/logging/logrotate.nix"
+    #"security/wrappers/default.nix"
+    "services/networking/prosody.nix"
+  ];
 }
-*/