Commit current dotfiles changes

This commit is contained in:
2026-04-12 15:33:30 -07:00
committed by Kat Huang
parent af093f45ce
commit fa5145c1d7
11 changed files with 201 additions and 5 deletions

View File

@@ -0,0 +1,24 @@
{
config,
lib,
pkgs,
...
}: let
cipherDir = "/var/lib/syncthing/sync/Private.encrypted";
mountPoint = "/home/imalison/Private";
in
lib.mkIf config.myModules.syncthing.enable {
system.activationScripts.syncthingPrivateVault = {
text = ''
install -d -o syncthing -g syncthing -m 2770 ${lib.escapeShellArg cipherDir}
'';
};
home-manager.users.imalison = {lib, ...}: {
home.packages = [pkgs.gocryptfs];
home.activation.ensureSyncthingPrivateVaultMountpoint = lib.hm.dag.entryAfter ["writeBoundary"] ''
mkdir -p ${lib.escapeShellArg mountPoint}
'';
};
}