diff options
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 31 |
1 files changed, 31 insertions, 0 deletions
@@ -15,6 +15,12 @@ pastor.url = "gitlab:cocainefarm/pastor/feature/nix"; authentik-nix.url = "github:nix-community/authentik-nix"; + + nixos-mailserver = { + url = "gitlab:simple-nixos-mailserver/nixos-mailserver/nixos-25.05"; + inputs.nixpkgs.follows = "nixpkgs-unstable"; + inputs.nixpkgs-25_05.follows = "nixpkgs"; + }; }; outputs = @@ -26,6 +32,7 @@ flake-parts, nixinate, authentik-nix, + nixos-mailserver, ... }: flake-parts.lib.mkFlake { inherit inputs; } { @@ -114,6 +121,27 @@ tlmp monitoring-node ]; + mail = nixpkgs.lib.nixosSystem { + inherit specialArgs; + system = "aarch64-linux"; + + modules = (with self.nixosModules; [ + nixinate.nixosModules.default + overlays + + common + users + wireguard + crypto + + (import ./machines/mail) + hetzner + acme + + nixos-mailserver.nixosModules.default + mailserver + ]); + }; fra01 = mkSystem [ (import ./machines/fra01) vultr @@ -143,6 +171,9 @@ ]; }; }; + perSystem = { config, pkgs, ... }: { + formatter = pkgs.nixfmt-rfc-style; + }; systems = [ "x86_64-linux" "x86_64-darwin" |
