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 {
|
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 ];
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user