1
0
Fork 0
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:
Damien Cassou 2025-05-19 21:36:09 +02:00 committed by Austin Horstman
parent 45c2985644
commit 382b34f656

View file

@ -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
); );
}; };
}; };
}; })
]
);
} }