From c3ec331e35a977d75d02e0dacab28165bd174786 Mon Sep 17 00:00:00 2001 From: Lgmrszd Date: Thu, 16 May 2024 01:01:08 +0300 Subject: [PATCH] add Simple NixOS Mailserver input and module --- flake.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/flake.nix b/flake.nix index b3a6c12..c34300e 100644 --- a/flake.nix +++ b/flake.nix @@ -7,6 +7,13 @@ # fresh - mostly desktop apps nixpkgs-fresh.url = "github:NixOS/nixpkgs/nixos-unstable"; nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-23.11"; + flake-compat.url = "github:edolstra/flake-compat"; + systems.url = "github:nix-systems/default"; + flake-utils = { + url = "github:numtide/flake-utils"; + inputs.systems.follows = "systems"; + }; + home-manager = { url = "github:nix-community/home-manager/master"; inputs.nixpkgs.follows = "nixpkgs"; @@ -16,6 +23,12 @@ inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs-stable.follows = "nixpkgs-stable"; }; + mailserver = { + url = "gitlab:simple-nixos-mailserver/nixos-mailserver/master"; + inputs.flake-compat.follows = "flake-compat"; + inputs.utils.follows = "flake-utils"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; outputs = inputs@{ @@ -24,6 +37,7 @@ nixpkgs-stable, home-manager, sops-nix, + mailserver, ... }: let @@ -76,6 +90,7 @@ specialArgs = { inherit data; }; modules = [ ({ config, pkgs, ... }: { nixpkgs.overlays = my-overlays; }) + mailserver.nixosModule ./hosts/vps1/configuration.nix ./hosts/vps1/hardware-configuration.nix sops-nix.nixosModules.sops