mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 11:36:05 +01:00
25 lines
521 B
Nix
25 lines
521 B
Nix
{
|
|
services.tomat = {
|
|
enable = true;
|
|
|
|
settings = {
|
|
timer = {
|
|
break = 10;
|
|
work = 60;
|
|
};
|
|
};
|
|
};
|
|
|
|
nmt.script =
|
|
let
|
|
serviceFile = "home-files/.config/systemd/user/tomat.service";
|
|
configFile = "home-files/.config/tomat/config.toml";
|
|
in
|
|
''
|
|
assertFileExists "${serviceFile}"
|
|
assertFileExists "${configFile}"
|
|
|
|
assertFileContent "${serviceFile}" ${./expected.service}
|
|
assertFileContent "${configFile}" ${./expected-config.toml}
|
|
'';
|
|
}
|