add Simple NixOS Mailserver input and module

This commit is contained in:
Lgmrszd 2024-05-16 01:01:08 +03:00
parent e158c95133
commit c3ec331e35
No known key found for this signature in database
GPG key ID: 9396B8BA6FBB14DE

View file

@ -7,6 +7,13 @@
# fresh - mostly desktop apps # fresh - mostly desktop apps
nixpkgs-fresh.url = "github:NixOS/nixpkgs/nixos-unstable"; nixpkgs-fresh.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-23.11"; 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 = { home-manager = {
url = "github:nix-community/home-manager/master"; url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
@ -16,6 +23,12 @@
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
inputs.nixpkgs-stable.follows = "nixpkgs-stable"; 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@{ outputs = inputs@{
@ -24,6 +37,7 @@
nixpkgs-stable, nixpkgs-stable,
home-manager, home-manager,
sops-nix, sops-nix,
mailserver,
... ...
}: }:
let let
@ -76,6 +90,7 @@
specialArgs = { inherit data; }; specialArgs = { inherit data; };
modules = [ modules = [
({ config, pkgs, ... }: { nixpkgs.overlays = my-overlays; }) ({ config, pkgs, ... }: { nixpkgs.overlays = my-overlays; })
mailserver.nixosModule
./hosts/vps1/configuration.nix ./hosts/vps1/configuration.nix
./hosts/vps1/hardware-configuration.nix ./hosts/vps1/hardware-configuration.nix
sops-nix.nixosModules.sops sops-nix.nixosModules.sops