diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-05-16 16:44:30 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-05-16 16:44:30 +0200 |
commit | a76847911c1975bf89e031154c7722d7919ef053 (patch) | |
tree | 630a0d1b43a6ed7a27029f1cddb3ada0eb28263f /modules/by-name/se | |
parent | flake: Pack arguments in attribute sets (diff) | |
download | nixos-config-a76847911c1975bf89e031154c7722d7919ef053.zip |
modules: Import external modules in the module that actually need them
Diffstat (limited to '')
-rw-r--r-- | modules/by-name/se/serverphone/module.currently_ignored.nix | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/modules/by-name/se/serverphone/module.currently_ignored.nix b/modules/by-name/se/serverphone/module.currently_ignored.nix index 378fc7c3..f7280bed 100644 --- a/modules/by-name/se/serverphone/module.currently_ignored.nix +++ b/modules/by-name/se/serverphone/module.currently_ignored.nix @@ -12,11 +12,22 @@ serverphone, system, lib, + modules, ... -}: { +}: let + cfg = config.soispha.serverphone; +in { # FIXME: Reactive this module, when serverphone is working again <2024-05-11> - config = lib.mkIf config.soispha.secrets.enable { + options.soispha.serverphone = { + enable = lib.mkEnableOption "serverphone"; + }; + + imports = [ + modules.serverphone.nixosModules.default + ]; + + config = lib.mkIf cfg.enable { age.secrets = { serverphoneCa = { file = ./private_keys/ca.key; |