home/fs: limit ~/.persist/* to just the users home data
This commit is contained in:
@@ -32,9 +32,15 @@
|
||||
sane.user.fs = let
|
||||
persistEnabled = config.sane.persist.enable;
|
||||
in {
|
||||
".persist/private" = lib.mkIf persistEnabled { symlink.target = config.sane.persist.stores.private.origin; };
|
||||
".persist/plaintext" = lib.mkIf persistEnabled { symlink.target = config.sane.persist.stores.plaintext.origin; };
|
||||
".persist/ephemeral" = lib.mkIf persistEnabled { symlink.target = config.sane.persist.stores.ephemeral.origin; };
|
||||
".persist/private" = lib.mkIf persistEnabled {
|
||||
symlink.target = "${config.sane.persist.stores.private.origin}/home/${config.sane.defaultUser}";
|
||||
};
|
||||
".persist/plaintext" = lib.mkIf persistEnabled {
|
||||
symlink.target = "${config.sane.persist.stores.plaintext.origin}/home/${config.sane.defaultUser}";
|
||||
};
|
||||
".persist/ephemeral" = lib.mkIf persistEnabled {
|
||||
symlink.target = "${config.sane.persist.stores.ephemeral.origin}/home/${config.sane.defaultUser}";
|
||||
};
|
||||
|
||||
"nixos".symlink.target = "dev/nixos";
|
||||
|
||||
|
Reference in New Issue
Block a user