mirror of
https://github.com/nix-community/home-manager.git
synced 2025-03-10 02:36: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.
29 lines
726 B
Nix
29 lines
726 B
Nix
{
|
|
services.avizo.enable = true;
|
|
|
|
nmt.script = ''
|
|
serviceFile=home-files/.config/systemd/user/avizo.service
|
|
assertFileExists $serviceFile
|
|
assertFileContent $serviceFile ${
|
|
builtins.toFile "expected" ''
|
|
[Install]
|
|
WantedBy=graphical-session.target
|
|
|
|
[Service]
|
|
ExecStart=@avizo@/bin/avizo-service
|
|
Restart=always
|
|
Type=simple
|
|
|
|
[Unit]
|
|
After=graphical-session.target
|
|
ConditionEnvironment=WAYLAND_DISPLAY
|
|
Description=Volume/backlight OSD indicator
|
|
Documentation=man:avizo(1)
|
|
PartOf=graphical-session.target
|
|
''
|
|
}
|
|
|
|
configFile=home-files/.config/avizo/config.ini
|
|
assertPathNotExists $configFile
|
|
'';
|
|
}
|