backups: remove redundant option 'program'
Not needed until we support other backup backends.
This commit is contained in:
parent
04d8560f86
commit
5f7a7962f7
@ -31,13 +31,6 @@ let
|
||||
in {
|
||||
options.services.backups = {
|
||||
enable = mkEnableOption "Backups service";
|
||||
program = mkOption {
|
||||
type = types.enum [ "duplicity" ];
|
||||
default = "duplicity";
|
||||
description = ''
|
||||
Program with which to do backups.
|
||||
'';
|
||||
};
|
||||
with-bulk-data = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
@ -69,7 +62,7 @@ in {
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf (cfg.enable && cfg.program == "duplicity") (mkMerge [
|
||||
config = mkIf cfg.enable (mkMerge [
|
||||
{
|
||||
environment.systemPackages = [ pkgs.duplicity ];
|
||||
|
||||
|
@ -52,10 +52,7 @@ in {
|
||||
};
|
||||
|
||||
# Backups
|
||||
services.backups = {
|
||||
program = "duplicity";
|
||||
frequency = "daily";
|
||||
};
|
||||
services.backups.frequency = "daily";
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
jq
|
||||
|
Loading…
Reference in New Issue
Block a user