mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 11:36:05 +01:00
home-manager: add backup overwrite option
When using the backupFileExtension option, if the backup file exists, the activation process fails. This adds an option to instead overwrite the old backup instead of failing.
This commit is contained in:
parent
7500458e85
commit
004753ae6b
5 changed files with 21 additions and 8 deletions
|
|
@ -91,6 +91,10 @@ in
|
|||
'';
|
||||
};
|
||||
|
||||
overwriteBackup = mkEnableOption ''
|
||||
forced overwriting of existing backup files when using `backupFileExtension`
|
||||
'';
|
||||
|
||||
extraSpecialArgs = mkOption {
|
||||
type = types.attrs;
|
||||
default = { };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue