Skip to content

Commit 9a1043d

Browse files
committed
feat(system/scrutiny): init
1 parent 4a4071a commit 9a1043d

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

system/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ in {
2929
./performance
3030
./power
3131
./printing
32+
./scrutiny # Hard Drive S.M.A.R.T Monitoring, historical trends
3233
./security
3334
./smb
3435
./stylix

system/scrutiny/default.nix

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
lib,
3+
isImpermanent,
4+
...
5+
}: {
6+
environment.persistence."/persist/system" = lib.mkIf isImpermanent {
7+
directories = [
8+
{
9+
directory = "/var/lib/private";
10+
mode = "0700";
11+
}
12+
"/var/lib/private/scrutiny"
13+
];
14+
};
15+
16+
services.scrutiny = {
17+
enable = true;
18+
settings.web.listen.port = 8081;
19+
};
20+
21+
systemd.services.scrutiny.enableStrictShellChecks = false;
22+
23+
systemd.tmpfiles.rules = [
24+
"d /var/lib/private 0700 root root -"
25+
];
26+
}

0 commit comments

Comments
 (0)