|
|
|
@ -1,8 +1,9 @@ |
|
|
|
|
{ config, lib, pkgs, ... }: |
|
|
|
|
{ config, lib, options, pkgs, ... }: |
|
|
|
|
|
|
|
|
|
with lib; |
|
|
|
|
let |
|
|
|
|
cfg = config.services.galene; |
|
|
|
|
opt = options.services.galene; |
|
|
|
|
defaultstateDir = "/var/lib/galene"; |
|
|
|
|
defaultrecordingsDir = "${cfg.stateDir}/recordings"; |
|
|
|
|
defaultgroupsDir = "${cfg.stateDir}/groups"; |
|
|
|
@ -88,6 +89,7 @@ in |
|
|
|
|
recordingsDir = mkOption { |
|
|
|
|
type = types.str; |
|
|
|
|
default = defaultrecordingsDir; |
|
|
|
|
defaultText = literalExpression ''"''${config.${opt.stateDir}}/recordings"''; |
|
|
|
|
example = "/var/lib/galene/recordings"; |
|
|
|
|
description = "Recordings directory."; |
|
|
|
|
}; |
|
|
|
@ -95,6 +97,7 @@ in |
|
|
|
|
dataDir = mkOption { |
|
|
|
|
type = types.str; |
|
|
|
|
default = defaultdataDir; |
|
|
|
|
defaultText = literalExpression ''"''${config.${opt.stateDir}}/data"''; |
|
|
|
|
example = "/var/lib/galene/data"; |
|
|
|
|
description = "Data directory."; |
|
|
|
|
}; |
|
|
|
@ -102,6 +105,7 @@ in |
|
|
|
|
groupsDir = mkOption { |
|
|
|
|
type = types.str; |
|
|
|
|
default = defaultgroupsDir; |
|
|
|
|
defaultText = literalExpression ''"''${config.${opt.stateDir}}/groups"''; |
|
|
|
|
example = "/var/lib/galene/groups"; |
|
|
|
|
description = "Web server directory."; |
|
|
|
|
}; |
|
|
|
|