1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-14 15:19:45 +01:00
home-manager/tests/modules/services/home-manager-auto-upgrade/basic-configuration.nix
pinage404 418ae217dd
home-manager.autoUpgrade: add module
Home Manager upgrade service that periodically updates your Nix
channels before running `home-manager switch`.
2022-01-28 23:42:25 +01:00

18 lines
401 B
Nix

{ 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
'';
};
}