summary refs log tree commit diff
path: root/nixos/modules/services/backup
diff options
context:
space:
mode:
authorpennae <github@quasiparticle.net>2021-11-26 01:16:05 +0100
committerpennae <github@quasiparticle.net>2021-12-02 22:35:04 +0100
commit25124556397ba17bfd70297000270de1e6523b0a (patch)
treea47a5e701f7ebd016871055c3032b8f6be4d0d6c /nixos/modules/services/backup
parent80c7745b4e8fae6e533475208fe947b0bcae3cdf (diff)
downloadnixpkgs-25124556397ba17bfd70297000270de1e6523b0a.tar
nixpkgs-25124556397ba17bfd70297000270de1e6523b0a.tar.gz
nixpkgs-25124556397ba17bfd70297000270de1e6523b0a.tar.bz2
nixpkgs-25124556397ba17bfd70297000270de1e6523b0a.tar.lz
nixpkgs-25124556397ba17bfd70297000270de1e6523b0a.tar.xz
nixpkgs-25124556397ba17bfd70297000270de1e6523b0a.tar.zst
nixpkgs-25124556397ba17bfd70297000270de1e6523b0a.zip
nixos/*: add trivial defaultText for options with simple defaults
Diffstat (limited to 'nixos/modules/services/backup')
-rw-r--r--nixos/modules/services/backup/bacula.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/nixos/modules/services/backup/bacula.nix b/nixos/modules/services/backup/bacula.nix
index cc8b77cbfbe..59890204234 100644
--- a/nixos/modules/services/backup/bacula.nix
+++ b/nixos/modules/services/backup/bacula.nix
@@ -302,6 +302,7 @@ in {
 
       name = mkOption {
         default = "${config.networking.hostName}-fd";
+        defaultText = literalExpression ''"''${config.networking.hostName}-fd"'';
         type = types.str;
         description = ''
           The client name that must be used by the Director when connecting.
@@ -364,6 +365,7 @@ in {
 
       name = mkOption {
         default = "${config.networking.hostName}-sd";
+        defaultText = literalExpression ''"''${config.networking.hostName}-sd"'';
         type = types.str;
         description = ''
           Specifies the Name of the Storage daemon.
@@ -439,6 +441,7 @@ in {
 
       name = mkOption {
         default = "${config.networking.hostName}-dir";
+        defaultText = literalExpression ''"''${config.networking.hostName}-dir"'';
         type = types.str;
         description = ''
           The director name used by the system administrator. This directive is