From 8d3e516c6269534ce7c2d19988900ef0eb0d3cb8 Mon Sep 17 00:00:00 2001 From: chn Date: Sat, 14 Sep 2024 22:13:51 +0800 Subject: [PATCH] modules.user.chn: fix --- modules/user/chn/default.nix | 43 ++++++++++++++++++++---------------- 1 file changed, 24 insertions(+), 19 deletions(-) diff --git a/modules/user/chn/default.nix b/modules/user/chn/default.nix index 48627b8c..f4fcf891 100644 --- a/modules/user/chn/default.nix +++ b/modules/user/chn/default.nix @@ -82,26 +82,31 @@ inputs: )) ) ]; - persistence."/nix/persistent/home/chn" = + persistence = { - directories = - [ - # common things - "bin" "Desktop" "Documents" "Downloads" "Music" "Pictures" "repo" "share" "Public" "Videos" - ".config" ".local/share" - # xmuvpn - ".ecdata" - # firefox - { dir = ".mozilla/firefox/default"; mode = "0700"; } - # ssh - { dir = ".ssh"; mode = "0700"; } - # steam - ".steam" # ".local/share/Steam" - # vscode - ".vscode" # ".config/Code" ".config/grammarly-languageserver" - # zotero - ".zotero" "Zotero" - ]; + "/nix/persistent/home/chn" = + { + directories = + [ + # common things + "bin" "Desktop" "Documents" "Downloads" "Music" "Pictures" "repo" "share" "Public" "Videos" + ".config" ".local/share" + # xmuvpn + ".ecdata" + # firefox + ".mozilla/firefox/default" + # ssh + ".ssh" + # steam + ".steam" # ".local/share/Steam" + # vscode + ".vscode" # ".config/Code" ".config/grammarly-languageserver" + # zotero + ".zotero" "Zotero" + ]; + allowOther = true; + }; + "/nix/rootfs/current/home/chn".allowOther = true; }; }; pam.yubico.authorizedYubiKeys.ids = [ "cccccbgrhnub" ];