grimm-nix-server/flake.nix
2023-12-31 18:06:33 +00:00

48 lines
1.3 KiB
Nix

# /etc/nixos/flake.nix
{
description = "flake for grimmauld-nixos-server";
inputs = {
agenix.url = "github:ryantm/agenix";
nixpkgs = {
url = "github:NixOS/nixpkgs/nixos-unstable";
};
nixos-matrix-modules = {
url = "git+https://github.com/dali99/nixos-matrix-modules?submodules=1";
flake = true;
};
nixos-mailserver = {
url = "git+https://gitlab.com/simple-nixos-mailserver/nixos-mailserver";
flake = true;
};
};
outputs = { nixos-mailserver, nixos-matrix-modules, self, nixpkgs, agenix }: let
system = "x86_64-linux";
in {
nixosConfigurations = {
grimmauld-nixos-server = nixpkgs.lib.nixosSystem {
inherit system;
modules = [
./configuration.nix
./modules/matrix.nix
./modules/puffer.nix
./modules/gitea.nix
./modules/grafana.nix
./modules/nextcloud.nix
./modules/prometheus.nix
./modules/letsencrypt.nix
./modules/mjolnir.nix
./modules/fail2ban.nix
./modules/email.nix
./modules/mastodon.nix
agenix.nixosModules.default
nixos-mailserver.nixosModules.default
nixos-matrix-modules.nixosModules.default
{ environment.systemPackages = [ agenix.packages.${system}.default ]; }
];
};
};
};
}