Home

ugit @main - refs - log -
-
https://git.jolheiser.com/ugit.git
The code powering this h*ckin' site
tree log patch
fix ugit dir perms
Signature
-----BEGIN SSH SIGNATURE----- U1NIU0lHAAAAAQAAADMAAAALc3NoLWVkMjU1MTkAAAAgBTEvCQk6VqUAdN2RuH6bj1dNkY oOpbPWj+jw4ua1B1cAAAADZ2l0AAAAAAAAAAZzaGE1MTIAAABTAAAAC3NzaC1lZDI1NTE5 AAAAQLxoKBKTA6s599nZ9BiVlzVN/RAsSFzpq4cc5sxSYiBR9JHvyXVuvs6/pLPaKylHWz JSJ2mzP3s2mmvai4EkhQY= -----END SSH SIGNATURE-----
jolheiser <git@jolheiser.com>
9 hours ago
1 changed files, 13 additions(+), 0 deletions(-)
nix/module.nix
M nix/module.nix -> nix/module.nix
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
diff --git a/nix/module.nix b/nix/module.nix
index 1dc7638ad0fd83cbc1139d1fac443dcc6e3d23bf..d16dde0e636328c0f4409eaa363d9728a275f69f 100644
--- a/nix/module.nix
+++ b/nix/module.nix
@@ -118,6 +118,19 @@     users.groups = lib.mapAttrs' (name: instanceCfg: lib.nameValuePair instanceCfg.group { }) (
       lib.filterAttrs (name: instanceCfg: instanceCfg.enable) cfg
     );
 
+    systemd.tmpfiles.settings = lib.mapAttrs' (
+      name: instanceCfg:
+      lib.nameValuePair "10-ugit-${name}" {
+        "${instanceCfg.homeDir}" = {
+          d = {
+            mode = "0750";
+            user = instanceCfg.user;
+            group = instanceCfg.group;
+          };
+        };
+      }
+    ) (lib.filterAttrs (name: instanceCfg: instanceCfg.enable) cfg);
+
     systemd.services = lib.foldl' (
       acc: name:
       let