summary refs log tree commit diff
path: root/nixos/modules/services/backup
diff options
context:
space:
mode:
authorEric Sagnes <eric.sagnes@gmail.com>2016-09-11 16:42:35 +0900
committerEric Sagnes <eric.sagnes@gmail.com>2016-09-13 12:53:09 +0900
commit09a3ea1abfc2869b2d3fde756a1192eb5c58c996 (patch)
tree996997c13611a34e9c51e045dafb71b7860d808e /nixos/modules/services/backup
parentfff4a9ee014e5605d39dbea39063507c6a12c6cc (diff)
downloadnixpkgs-09a3ea1abfc2869b2d3fde756a1192eb5c58c996.tar
nixpkgs-09a3ea1abfc2869b2d3fde756a1192eb5c58c996.tar.gz
nixpkgs-09a3ea1abfc2869b2d3fde756a1192eb5c58c996.tar.bz2
nixpkgs-09a3ea1abfc2869b2d3fde756a1192eb5c58c996.tar.lz
nixpkgs-09a3ea1abfc2869b2d3fde756a1192eb5c58c996.tar.xz
nixpkgs-09a3ea1abfc2869b2d3fde756a1192eb5c58c996.tar.zst
nixpkgs-09a3ea1abfc2869b2d3fde756a1192eb5c58c996.zip
bacula module: optionSet -> submodule
Diffstat (limited to 'nixos/modules/services/backup')
-rw-r--r--nixos/modules/services/backup/bacula.nix9
1 files changed, 3 insertions, 6 deletions
diff --git a/nixos/modules/services/backup/bacula.nix b/nixos/modules/services/backup/bacula.nix
index 8a26aae75fe..ef8e5e55ede 100644
--- a/nixos/modules/services/backup/bacula.nix
+++ b/nixos/modules/services/backup/bacula.nix
@@ -198,8 +198,7 @@ in {
         description = ''
           This option defines director resources in Bacula File Daemon.
         '';
-        type = types.attrsOf types.optionSet;
-        options = [ directorOptions ];
+        type = with types; attrsOf (submodule directorOptions);
       };
 
       extraClientConfig = mkOption {
@@ -253,8 +252,7 @@ in {
         description = ''
           This option defines Director resources in Bacula Storage Daemon.
         '';
-        type = types.attrsOf types.optionSet;
-        options = [ directorOptions ];
+        type = with types; attrsOf (submodule directorOptions);
       };
 
       device = mkOption {
@@ -262,8 +260,7 @@ in {
         description = ''
           This option defines Device resources in Bacula Storage Daemon.
         '';
-        type = types.attrsOf types.optionSet;
-        options = [ deviceOptions ];
+        type = with types; attrsOf (submodule deviceOptions);
       };
  
       extraStorageConfig = mkOption {