2023-06-23 06:22:34 +02:00
|
|
|
{
|
|
|
|
description = "SelfHostBlocks module";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
sops-nix.url = "github:Mic92/sops-nix";
|
2023-11-05 04:30:17 +01:00
|
|
|
nix-flake-tests.url = "github:antifuchs/nix-flake-tests";
|
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
2023-06-23 06:22:34 +02:00
|
|
|
};
|
|
|
|
|
2023-11-05 04:30:17 +01:00
|
|
|
outputs = inputs@{ self, nixpkgs, sops-nix, nix-flake-tests, flake-utils, ... }: flake-utils.lib.eachDefaultSystem (system:
|
|
|
|
let
|
|
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
|
|
in
|
|
|
|
{
|
|
|
|
nixosModules.default = { config, ... }: {
|
|
|
|
imports = [
|
|
|
|
modules/arr.nix
|
|
|
|
modules/authelia.nix
|
|
|
|
modules/backup.nix
|
|
|
|
modules/deluge.nix
|
|
|
|
modules/davfs.nix
|
|
|
|
modules/hledger.nix
|
|
|
|
modules/home-assistant.nix
|
|
|
|
modules/jellyfin.nix
|
|
|
|
modules/ldap.nix
|
|
|
|
modules/monitoring.nix
|
|
|
|
modules/nextcloud-server.nix
|
|
|
|
modules/nginx.nix
|
|
|
|
modules/postgresql.nix
|
|
|
|
modules/ssl.nix
|
|
|
|
modules/tinyproxy.nix
|
2023-11-07 04:47:31 +01:00
|
|
|
modules/vaultwarden.nix
|
2023-11-05 04:30:17 +01:00
|
|
|
modules/vpn.nix
|
|
|
|
];
|
|
|
|
};
|
2023-06-23 06:22:34 +02:00
|
|
|
|
2023-11-05 04:30:17 +01:00
|
|
|
checks = {
|
|
|
|
tests = nix-flake-tests.lib.check {
|
|
|
|
inherit pkgs;
|
|
|
|
tests = import ./test/default.nix {
|
|
|
|
inherit (pkgs) lib;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
# templates.default = {}; Would be nice to have a template
|
|
|
|
}
|
|
|
|
);
|
2023-06-23 06:22:34 +02:00
|
|
|
}
|