1
0
Fork 0
selfhostblocks/flake.nix
2023-11-06 19:47:31 -08:00

49 lines
1.4 KiB
Nix

{
description = "SelfHostBlocks module";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
sops-nix.url = "github:Mic92/sops-nix";
nix-flake-tests.url = "github:antifuchs/nix-flake-tests";
flake-utils.url = "github:numtide/flake-utils";
};
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
modules/vaultwarden.nix
modules/vpn.nix
];
};
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
}
);
}