Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jan 9, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions nixos/modules/services/web-apps/galene.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ in

stateDir = mkOption {
default = defaultstateDir;
type = types.str;
type = types.path;
description = ''
The directory where Galene stores its internal state. If left as the default
value this directory will automatically be created before the Galene server
Expand Down Expand Up @@ -47,7 +47,7 @@ in
};

certFile = mkOption {
type = types.nullOr types.str;
type = types.nullOr types.path;
default = null;
example = "/path/to/your/cert.pem";
description = ''
Expand All @@ -57,7 +57,7 @@ in
};

keyFile = mkOption {
type = types.nullOr types.str;
type = types.nullOr types.path;
default = null;
example = "/path/to/your/key.pem";
description = ''
Expand Down Expand Up @@ -86,31 +86,31 @@ in
};

staticDir = mkOption {
type = types.str;
type = types.path;
default = "${cfg.package.static}/static";
defaultText = literalExpression ''"''${package.static}/static"'';
example = "/var/lib/galene/static";
description = "Web server directory.";
};

recordingsDir = mkOption {
type = types.str;
type = types.path;
default = defaultrecordingsDir;
defaultText = literalExpression ''"''${config.${opt.stateDir}}/recordings"'';
example = "/var/lib/galene/recordings";
description = "Recordings directory.";
};

dataDir = mkOption {
type = types.str;
type = types.path;
default = defaultdataDir;
defaultText = literalExpression ''"''${config.${opt.stateDir}}/data"'';
example = "/var/lib/galene/data";
description = "Data directory.";
};

groupsDir = mkOption {
type = types.str;
type = types.path;
default = defaultgroupsDir;
defaultText = literalExpression ''"''${config.${opt.stateDir}}/groups"'';
example = "/var/lib/galene/groups";
Expand Down