From bd794f98a24ffbd577c7df4d44e760e6ad4fa6fa Mon Sep 17 00:00:00 2001 From: yukkop Date: Wed, 7 Oct 2026 14:12:27 +0000 Subject: [PATCH] refactor: mailserver now not invariant --- .../module/{hectic/service => generic}/mailserver.nix | 10 ++++++---- nixos/module/hectic/archetype/base.nix | 1 - nixos/system/hectic-lab/hectic-lab.nix | 1 + 3 files changed, 7 insertions(+), 5 deletions(-) rename nixos/module/{hectic/service => generic}/mailserver.nix (96%) diff --git a/nixos/module/hectic/service/mailserver.nix b/nixos/module/generic/mailserver.nix similarity index 96% rename from nixos/module/hectic/service/mailserver.nix rename to nixos/module/generic/mailserver.nix index 6760c9df..6da7bca2 100644 --- a/nixos/module/hectic/service/mailserver.nix +++ b/nixos/module/generic/mailserver.nix @@ -1,9 +1,7 @@ { inputs, - flake, - self, -}: -{ + ... +}: { lib, config, ... @@ -15,6 +13,10 @@ value = input.${key}; }) (builtins.attrNames input)); in { + imports = [ + inputs.nixos-mailserver.nixosModules.mailserver + ]; + options = { services.mailserver.enable = lib.mkEnableOption "Mail server"; diff --git a/nixos/module/hectic/archetype/base.nix b/nixos/module/hectic/archetype/base.nix index 8531b668..1d213e99 100644 --- a/nixos/module/hectic/archetype/base.nix +++ b/nixos/module/hectic/archetype/base.nix @@ -12,7 +12,6 @@ in { imports = [ inputs.disko.nixosModules.default - inputs.nixos-mailserver.nixosModules.mailserver ]; options.hectic.archetype.base.enable = lib.mkEnableOption "Enable archetupe.dev"; diff --git a/nixos/system/hectic-lab/hectic-lab.nix b/nixos/system/hectic-lab/hectic-lab.nix index 64ef58b6..5edeb4fb 100644 --- a/nixos/system/hectic-lab/hectic-lab.nix +++ b/nixos/system/hectic-lab/hectic-lab.nix @@ -52,6 +52,7 @@ let in { imports = [ self.nixosModules.hectic + self.nixosModules.mailserver self.nixosModules.matrix-cluster inputs.sops-nix.nixosModules.sops