1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-03 07:31:03 +01:00
home-manager/tests/modules/services/darkman/no-configuration.nix
Austin Horstman cba2f9ce95 treewide: reformat nixfmt-rfc-style
Reformat repository using new nixfmt-rfc-style.
2025-04-08 08:50:05 -07:00

29 lines
830 B
Nix

{
services.darkman.enable = true;
nmt.script = ''
serviceFile=$(normalizeStorePaths home-files/.config/systemd/user/darkman.service)
assertFileExists $serviceFile
assertFileContent $serviceFile ${builtins.toFile "expected" ''
[Install]
WantedBy=graphical-session.target
[Service]
BusName=nl.whynothugo.darkman
ExecStart=@darkman@/bin/darkman run
Restart=on-failure
Slice=background.slice
TimeoutStopSec=15
Type=dbus
[Unit]
BindsTo=graphical-session.target
Description=Darkman system service
Documentation=man:darkman(1)
PartOf=graphical-session.target
''}
assertPathNotExists home-files/.local/share/dark-mode.d/color-scheme-dark
assertPathNotExists home-files/.local/share/light-mode.d/color-scheme-light
'';
}