fix: impermanence permission

This commit is contained in:
2025-05-04 10:58:06 +08:00
parent 1a7112c21d
commit 0a52c5f1b2
3 changed files with 10 additions and 6 deletions

View File

@@ -21,7 +21,10 @@
"workspace" "workspace"
"Virt" "Virt"
".ssh" {
directory = ".ssh";
mode = "0700";
}
".local/state" ".local/state"
".local/share" ".local/share"
".local/share/nvim" ".local/share/nvim"

View File

@@ -14,6 +14,11 @@ lib.my.makeHomeProgramConfig {
pinentryPackage = pkgs.pinentry-curses; pinentryPackage = pkgs.pinentry-curses;
enableSSHSupport = true; enableSSHSupport = true;
}; };
my.persist.homeDirs = [ ".gnupg" ]; my.persist.homeDirs = [
{
directory = ".gnupg";
mode = "0700";
}
];
}; };
} }

View File

@@ -20,7 +20,6 @@ in
''; '';
}; };
homeDirs = lib.mkOption { homeDirs = lib.mkOption {
type = with lib.types; listOf str;
default = [ ]; default = [ ];
example = lib.literalExpression '' example = lib.literalExpression ''
[ [
@@ -33,7 +32,6 @@ in
''; '';
}; };
nixosDirs = lib.mkOption { nixosDirs = lib.mkOption {
type = with lib.types; listOf str;
default = [ ]; default = [ ];
example = lib.literalExpression '' example = lib.literalExpression ''
[ [
@@ -46,7 +44,6 @@ in
''; '';
}; };
homeFiles = lib.mkOption { homeFiles = lib.mkOption {
type = with lib.types; listOf str;
default = [ ]; default = [ ];
example = lib.literalExpression '' example = lib.literalExpression ''
[ [
@@ -58,7 +55,6 @@ in
''; '';
}; };
nixosFiles = lib.mkOption { nixosFiles = lib.mkOption {
type = with lib.types; listOf str;
default = [ ]; default = [ ];
example = lib.literalExpression '' example = lib.literalExpression ''
[ [