-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdefault.nix
More file actions
53 lines (49 loc) · 1.31 KB
/
Copy pathdefault.nix
File metadata and controls
53 lines (49 loc) · 1.31 KB
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
{
config,
username,
...
}:
{
imports = [
./disk-config.nix
./hardware-configuration.nix
./monitoring.nix
../../../shared/nixos/restic.nix
];
system.stateVersion = "24.11";
# Not part of genebean.kiosk-hardware: nixpkgs.overlays helps construct
# `pkgs` itself, so gating it behind a home-manager-sourced cfg.enable
# check creates a genuine circular dependency (evaluating cfg.enable
# pulls in pkgs, which depends on nixpkgs.overlays, which is what we're
# trying to compute) - confirmed via a real "infinite recursion" eval
# error when this was tried. Stays per-host, unconditional.
nixpkgs.overlays = [
(_final: super: {
makeModulesClosure = x: super.makeModulesClosure (x // { allowMissing = true; });
})
];
services = {
prometheus.exporters.node = {
enable = true;
enabledCollectors = [
"logind"
"systemd"
"network_route"
];
disabledCollectors = [
"textfile"
];
};
smartd.enable = true;
};
sops = {
age.keyFile = "${config.users.users.${username}.home}/.config/sops/age/keys.txt";
defaultSopsFile = ./secrets.yaml;
secrets = {
local_private_env = {
owner = "${username}";
path = "${config.users.users.${username}.home}/.private-env";
};
};
};
}