54 lines
1.8 KiB
Nix
54 lines
1.8 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";
|
|
};
|
|
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-23.11";
|
|
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";
|
|
url = "git+https://gitlab.com/Grimmauld/nixos-mailserver?ref=Grimmauld-master-patch-84178";
|
|
flake = true;
|
|
};
|
|
};
|
|
|
|
outputs = { nixos-mailserver, nixos-matrix-modules, self, nixpkgs-stable, nixpkgs, agenix, ... } @ inputs: let
|
|
system = "x86_64-linux";
|
|
stable = import nixpkgs-stable { inherit system; config.allowUnfree = true; };
|
|
in {
|
|
nixosConfigurations = {
|
|
grimmauld-nixos-server = nixpkgs.lib.nixosSystem {
|
|
inherit system;
|
|
specialArgs = { inherit inputs stable; };
|
|
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/discord-matrix-bridge.nix
|
|
./modules/mastodon.nix
|
|
./modules/toolchains.nix
|
|
# ./modules/ptero.nix
|
|
agenix.nixosModules.default
|
|
nixos-mailserver.nixosModules.default
|
|
nixos-matrix-modules.nixosModules.default
|
|
{ environment.systemPackages = [ agenix.packages.${system}.default ]; }
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|