home-manager-auto-expire: init
This commit introduces a new service that expires old Home-Manager generations.
This commit is contained in:
parent
938e802b70
commit
28242a60d3
5 changed files with 121 additions and 0 deletions
|
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
config = {
|
||||
services.home-manager.autoExpire = {
|
||||
enable = true;
|
||||
timestamp = "-7 days";
|
||||
frequency = "00:00";
|
||||
cleanup.store = true;
|
||||
};
|
||||
|
||||
nmt.script = ''
|
||||
serviceFile=home-files/.config/systemd/user/home-manager-auto-expire.service
|
||||
assertFileExists $serviceFile
|
||||
|
||||
timerFile=home-files/.config/systemd/user/home-manager-auto-expire.timer
|
||||
assertFileExists $timerFile
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
@ -0,0 +1 @@
|
|||
{ home-manager-auto-expire-basic-configuration = ./basic-configuration.nix; }
|
||||
Loading…
Add table
Add a link
Reference in a new issue