mirror of
https://github.com/nix-community/home-manager.git
synced 2026-10-02 19:49:18 +00:00
Enable statix's empty_pattern rule and apply its auto-fixes across the affected modules and tests.
26 lines
476 B
Nix
26 lines
476 B
Nix
{
|
|
programs.tirith = {
|
|
enable = true;
|
|
allowlist = [
|
|
"localhost"
|
|
"example.com"
|
|
];
|
|
policy = {
|
|
version = 1;
|
|
fail_mode = "open";
|
|
};
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.config/tirith/allowlist
|
|
assertFileContent \
|
|
home-files/.config/tirith/allowlist \
|
|
${builtins.toFile "expected" ''
|
|
localhost
|
|
example.com
|
|
''}
|
|
|
|
assertFileExists home-files/.config/tirith/policy.yaml
|
|
'';
|
|
}
|