mirror of
https://github.com/nix-community/home-manager.git
synced 2025-03-09 18:26:54 +00:00
Instead of having to manually stub packages that should not be downloaded we instead automatically stub all packages (except a small list of whitelisted ones). Tests can re-introduce the real package by using the `realPkgs` module argument.
32 lines
873 B
Nix
32 lines
873 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
|
|
'';
|
|
}
|
|
|