0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-12 05:16:25 +03:00

nixos/snapper: Don't create broken snapper-boot.service

This commit is contained in:
Rodney Lorrimar 2024-06-18 10:31:50 +08:00
parent b60ebf54c1
commit 52ef91d339
No known key found for this signature in database
GPG key ID: D8B75C95FB4D1143
2 changed files with 5 additions and 2 deletions

View file

@ -235,7 +235,7 @@ in
timerConfig.OnUnitActiveSec = cfg.cleanupInterval;
};
systemd.services.snapper-boot = lib.optionalAttrs cfg.snapshotRootOnBoot {
systemd.services.snapper-boot = lib.mkIf cfg.snapshotRootOnBoot {
description = "Take snapper snapshot of root on boot";
inherit documentation;
serviceConfig.ExecStart = "${pkgs.snapper}/bin/snapper --config root create --cleanup-algorithm number --description boot";