2024-03-26 14:24:49 -06:00
|
|
|
{
|
|
|
|
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
|
2025-01-31 21:24:47 +01:00
|
|
|
ExecStart=@darkman@/bin/darkman run
|
2024-03-26 14:24:49 -06:00
|
|
|
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
|
|
|
|
'';
|
|
|
|
}
|
|
|
|
|