summary refs log tree commit diff stats
path: root/flake.nix
diff options
context:
space:
mode:
authorene <ene@sils.li>2023-03-20 15:06:45 +0100
committerene <ene@sils.li>2023-03-20 15:06:45 +0100
commit034bba88dd9e2e1099774dcb33f77a4c904627ba (patch)
tree7e48f79857dc58df67f6d8e0f809f693dbd09116 /flake.nix
parentMerge branch 'server1_network' into server1_develop (diff)
parentFix(system/services/minecraft): Remove to make compile (diff)
downloadnixos-server-034bba88dd9e2e1099774dcb33f77a4c904627ba.tar.gz
nixos-server-034bba88dd9e2e1099774dcb33f77a4c904627ba.zip
Merge branch 'server1_mail' into server1_develop
Diffstat (limited to '')
-rw-r--r--flake.nix10
1 files changed, 9 insertions, 1 deletions
diff --git a/flake.nix b/flake.nix
index 9df3c84..36ae34e 100644
--- a/flake.nix
+++ b/flake.nix
@@ -4,17 +4,25 @@
 
   inputs = {
     nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.11-small";
+    simple-nixos-mailserver.url = "gitlab:simple-nixos-mailserver/nixos-mailserver/nixos-22.11";
   };
 
   outputs = {
     self,
     nixpkgs,
+    simple-nixos-mailserver,
     ...
   } @ attrs: {
     nixosConfigurations."server1" = nixpkgs.lib.nixosSystem {
       system = "x86_64-linux";
       specialArgs = attrs;
-      modules = [./hosts/server1/configuration.nix];
+      modules = [
+        ./hosts/server1/configuration.nix
+        simple-nixos-mailserver.nixosModule
+        {
+          mailserver = import ./system/mail {};
+        }
+      ];
     };
   };
 }