summaryrefslogtreecommitdiff
path: root/modules/webapps/diaspora.nix
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2020-04-05 15:57:20 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2020-04-25 00:04:54 +0200
commit2bcc666fd591dbf7543fc550ff1772508695a746 (patch)
tree65bb255cbeba40f4c385211bcc32df4c25e6ea6b /modules/webapps/diaspora.nix
parent27794e1507ab5bd4b0f31278cf8049854790e4a7 (diff)
downloadNUR-2bcc666fd591dbf7543fc550ff1772508695a746.tar.gz
NUR-2bcc666fd591dbf7543fc550ff1772508695a746.tar.zst
NUR-2bcc666fd591dbf7543fc550ff1772508695a746.zip
Upgrade to nixos-unstable
Diffstat (limited to 'modules/webapps/diaspora.nix')
-rw-r--r--modules/webapps/diaspora.nix28
1 files changed, 15 insertions, 13 deletions
diff --git a/modules/webapps/diaspora.nix b/modules/webapps/diaspora.nix
index 65599b73..d9e9989f 100644
--- a/modules/webapps/diaspora.nix
+++ b/modules/webapps/diaspora.nix
@@ -108,19 +108,21 @@ in
108 }; 108 };
109 109
110 config = lib.mkIf cfg.enable { 110 config = lib.mkIf cfg.enable {
111 users.users = lib.optionalAttrs (cfg.user == name) (lib.singleton { 111 users.users = lib.optionalAttrs (cfg.user == name) {
112 inherit name; 112 "${name}" = {
113 inherit uid; 113 inherit uid;
114 group = cfg.group; 114 group = cfg.group;
115 description = "Diaspora user"; 115 description = "Diaspora user";
116 home = cfg.dataDir; 116 home = cfg.dataDir;
117 packages = [ cfg.workdir.gems pkgs.nodejs cfg.workdir.gems.ruby ]; 117 packages = [ cfg.workdir.gems pkgs.nodejs cfg.workdir.gems.ruby ];
118 useDefaultShell = true; 118 useDefaultShell = true;
119 }); 119 };
120 users.groups = lib.optionalAttrs (cfg.group == name) (lib.singleton { 120 };
121 inherit name; 121 users.groups = lib.optionalAttrs (cfg.group == name) {
122 inherit gid; 122 "${name}" = {
123 }); 123 inherit gid;
124 };
125 };
124 126
125 systemd.services.diaspora = { 127 systemd.services.diaspora = {
126 description = "Diaspora"; 128 description = "Diaspora";