nixos/galene: use types.path for paths (#372391)

authored by K900 and committed by GitHub 418276cd c30dc6d3

+7 -7
+7 -7
nixos/modules/services/web-apps/galene.nix
··· 16 17 stateDir = mkOption { 18 default = defaultstateDir; 19 - type = types.str; 20 description = '' 21 The directory where Galene stores its internal state. If left as the default 22 value this directory will automatically be created before the Galene server ··· 47 }; 48 49 certFile = mkOption { 50 - type = types.nullOr types.str; 51 default = null; 52 example = "/path/to/your/cert.pem"; 53 description = '' ··· 57 }; 58 59 keyFile = mkOption { 60 - type = types.nullOr types.str; 61 default = null; 62 example = "/path/to/your/key.pem"; 63 description = '' ··· 86 }; 87 88 staticDir = mkOption { 89 - type = types.str; 90 default = "${cfg.package.static}/static"; 91 defaultText = literalExpression ''"''${package.static}/static"''; 92 example = "/var/lib/galene/static"; ··· 94 }; 95 96 recordingsDir = mkOption { 97 - type = types.str; 98 default = defaultrecordingsDir; 99 defaultText = literalExpression ''"''${config.${opt.stateDir}}/recordings"''; 100 example = "/var/lib/galene/recordings"; ··· 102 }; 103 104 dataDir = mkOption { 105 - type = types.str; 106 default = defaultdataDir; 107 defaultText = literalExpression ''"''${config.${opt.stateDir}}/data"''; 108 example = "/var/lib/galene/data"; ··· 110 }; 111 112 groupsDir = mkOption { 113 - type = types.str; 114 default = defaultgroupsDir; 115 defaultText = literalExpression ''"''${config.${opt.stateDir}}/groups"''; 116 example = "/var/lib/galene/groups";
··· 16 17 stateDir = mkOption { 18 default = defaultstateDir; 19 + type = types.path; 20 description = '' 21 The directory where Galene stores its internal state. If left as the default 22 value this directory will automatically be created before the Galene server ··· 47 }; 48 49 certFile = mkOption { 50 + type = types.nullOr types.path; 51 default = null; 52 example = "/path/to/your/cert.pem"; 53 description = '' ··· 57 }; 58 59 keyFile = mkOption { 60 + type = types.nullOr types.path; 61 default = null; 62 example = "/path/to/your/key.pem"; 63 description = '' ··· 86 }; 87 88 staticDir = mkOption { 89 + type = types.path; 90 default = "${cfg.package.static}/static"; 91 defaultText = literalExpression ''"''${package.static}/static"''; 92 example = "/var/lib/galene/static"; ··· 94 }; 95 96 recordingsDir = mkOption { 97 + type = types.path; 98 default = defaultrecordingsDir; 99 defaultText = literalExpression ''"''${config.${opt.stateDir}}/recordings"''; 100 example = "/var/lib/galene/recordings"; ··· 102 }; 103 104 dataDir = mkOption { 105 + type = types.path; 106 default = defaultdataDir; 107 defaultText = literalExpression ''"''${config.${opt.stateDir}}/data"''; 108 example = "/var/lib/galene/data"; ··· 110 }; 111 112 groupsDir = mkOption { 113 + type = types.path; 114 default = defaultgroupsDir; 115 defaultText = literalExpression ''"''${config.${opt.stateDir}}/groups"''; 116 example = "/var/lib/galene/groups";