From e3a18282c19c97c5248b43c82d14773a578769a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kier=C3=A1n=20Meinhardt?= Date: Sun, 28 Apr 2024 13:25:24 +0200 Subject: [PATCH] feat: symlink synced directories to home --- configs/cloud.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/configs/cloud.nix b/configs/cloud.nix index afe776b..21726b3 100644 --- a/configs/cloud.nix +++ b/configs/cloud.nix @@ -13,7 +13,14 @@ in { age = "7d"; path = "${config.users.users.me.home}/sync/Downloads"; } - ]; + ] ++ map (path: tmpfilesConfig { + type = "L+"; + user = config.users.users.me.name; + group = config.users.users.me.group; + mode = "0755"; + argument = "${config.users.users.me.home}/sync/${path}"; + path = "${config.users.users.me.home}/${path}"; + }) [".ssh" ".gnupg" ".pki" ".local/share/aerc"]; services.gnome.gnome-keyring.enable = true; security.pam.services.lightdm.enableGnomeKeyring = true;