-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
63 lines (51 loc) · 2.19 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{
description = "Nix configurations ready for deployment";
inputs = {
nixpkgs.url = "nixpkgs/nixos-21.05";
flake-compat = {
url = "github:edolstra/flake-compat";
flake = false;
};
};
outputs = { self, nixpkgs, flake-compat, ... }:
let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
testingLib = builtins.readFile ./lib/testing-lib.py;
importTest = test: import test { inherit pkgs testingLib; };
in
{
nixosModules = {
neuron = import ./machines/neuron;
osticket = import ./machines/osticket;
wallabag = import ./machines/wallabag;
mail = import ./machines/mail;
sshd = import ./modules/paranoid-sshd;
nixosShellBase = import ./lib/nixos-shell-base.nix;
};
moduleLib = {
mkInitModule = import ./modules/mk-init-module;
mkInstallationModule = import ./modules/mk-installation-module;
mkDatabaseModule = import ./modules/mk-database-module;
mkSSLModule = import ./modules/mk-database-module;
mkBackupModule = import ./modules/backup; # TODO: Shouldn't it be mkBackupModule?
};
checks.${system} = {
multiDeploy = importTest ./modules/multi-deploy/test.nix;
neuron = importTest ./machines/neuron/test.nix;
wallabag = importTest ./machines/wallabag/test.nix;
osticket = importTest ./machines/osticket/test.nix;
postfixVirtual = importTest ./machines/mail/postfix/testing/virtual-test.nix;
postfixDelivery = importTest ./machines/mail/postfix/testing/delivery-test.nix;
postfixRestrictions = importTest ./machines/mail/postfix/testing/restrictions-test.nix;
doOnRequest = importTest ./modules/do-on-request/test.nix;
autoRsync = importTest ./modules/auto-rsync/test.nix;
mkSSLModule = importTest ./modules/ssl/test.nix;
mkInstallationModule = importTest ./modules/mk-installation-module/test.nix;
mkDatabaseModule = importTest ./modules/mk-database-module/test.nix;
mkInitModule = importTest ./modules/mk-init-module/test.nix;
mkBackupModuleDatabase = importTest ./modules/backup/database-test.nix;
mkBackupModuleDirectories = importTest ./modules/backup/directories-test.nix;
};
};
}