home-manager/tests/modules/services/home-manager-auto-upgrade/basic-configuration.nix

19 lines
401 B
Nix
Raw Normal View History

{ config, ... }:
{
config = {
services.home-manager.autoUpgrade = {
enable = true;
frequency = "00:00";
};
nmt.script = ''
serviceFile=home-files/.config/systemd/user/home-manager-auto-upgrade.service
assertFileExists $serviceFile
timerFile=home-files/.config/systemd/user/home-manager-auto-upgrade.timer
assertFileExists $timerFile
'';
};
}