mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-21 01:39:39 +01:00
services.home-manager.autoExpire: wrap systemd configuration within a isLinux condition
This commit is contained in:
parent
45c2985644
commit
382b34f656
1 changed files with 32 additions and 32 deletions
|
|
@ -70,11 +70,9 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable (
|
||||||
assertions = [
|
lib.mkMerge [
|
||||||
(lib.hm.assertions.assertPlatform "services.home-manager.autoExpire" pkgs lib.platforms.linux)
|
(lib.mkIf pkgs.stdenv.isLinux {
|
||||||
];
|
|
||||||
|
|
||||||
systemd.user = {
|
systemd.user = {
|
||||||
timers.home-manager-auto-expire = {
|
timers.home-manager-auto-expire = {
|
||||||
Unit.Description = "Home Manager expire generations timer";
|
Unit.Description = "Home Manager expire generations timer";
|
||||||
|
|
@ -105,5 +103,7 @@ in
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
})
|
||||||
|
]
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue