backups: remove redundant option 'program'

Not needed until we support other backup backends.
This commit is contained in:
Erik Arvstedt 2021-01-14 13:24:28 +01:00
parent 04d8560f86
commit 5f7a7962f7
No known key found for this signature in database
GPG Key ID: 33312B944DD97846
2 changed files with 2 additions and 12 deletions

View File

@ -31,13 +31,6 @@ let
in { in {
options.services.backups = { options.services.backups = {
enable = mkEnableOption "Backups service"; enable = mkEnableOption "Backups service";
program = mkOption {
type = types.enum [ "duplicity" ];
default = "duplicity";
description = ''
Program with which to do backups.
'';
};
with-bulk-data = mkOption { with-bulk-data = mkOption {
type = types.bool; type = types.bool;
default = false; default = false;
@ -69,7 +62,7 @@ in {
}; };
}; };
config = mkIf (cfg.enable && cfg.program == "duplicity") (mkMerge [ config = mkIf cfg.enable (mkMerge [
{ {
environment.systemPackages = [ pkgs.duplicity ]; environment.systemPackages = [ pkgs.duplicity ];

View File

@ -52,10 +52,7 @@ in {
}; };
# Backups # Backups
services.backups = { services.backups.frequency = "daily";
program = "duplicity";
frequency = "daily";
};
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
jq jq