+13
-15
module.nix
+13
-15
module.nix
···
64
'';
65
};
66
67
-
frontend = {
68
-
enable = lib.mkEnabeOption "serving the frontend from the backend. Disable to server the frontend manually"
69
-
// { default = true; };
70
-
71
-
package = mkOption {
72
-
type = types.nullOr types.package;
73
-
default = self.packages.${pkgs.stdenv.hostPlatform.system}.tranquil-frontend;
74
-
defaultText = lib.literalExpression "self.packages.\${pkgs.stdenv.hostPlatform.system}.tranquil-frontend";
75
-
description = "Frontend package to be served by the backend";
76
-
};
77
-
};
78
-
79
settings = mkOption {
80
type = types.submodule {
81
freeformType = settingsFormat.type;
···
108
};
109
};
110
111
storage = {
112
path = mkOption {
113
type = types.path;
···
175
};
176
})
177
178
-
{
179
-
services.tranquil-pds.settings.frontend.dir = lib.mkDefault cfg.frontend.package;
180
-
181
users.users.${cfg.user} = {
182
isSystemUser = true;
183
inherit (cfg) group;
···
64
'';
65
};
66
67
settings = mkOption {
68
type = types.submodule {
69
freeformType = settingsFormat.type;
···
96
};
97
};
98
99
+
frontend = {
100
+
enable = lib.mkEnabeOption "serving the frontend from the backend. Disable to server the frontend manually"
101
+
// { default = true; };
102
+
103
+
dir = mkOption {
104
+
type = types.nullOr types.package;
105
+
default = self.packages.${pkgs.stdenv.hostPlatform.system}.tranquil-frontend;
106
+
defaultText = lib.literalExpression "self.packages.\${pkgs.stdenv.hostPlatform.system}.tranquil-frontend";
107
+
description = "Frontend package to be served by the backend";
108
+
};
109
+
};
110
+
111
storage = {
112
path = mkOption {
113
type = types.path;
···
175
};
176
})
177
178
+
{
179
users.users.${cfg.user} = {
180
isSystemUser = true;
181
inherit (cfg) group;
History
5 rounds
7 comments
expand 0 comments
pull request successfully merged
expand 4 comments
expand 0 comments
expand 2 comments
im just thinking whats the point of the separate frontend options when we now have similar options under settings?
oh true. can probably just slap them together under settings.frontend. enable still being enable but dir being what is now package?
still looks great :D