fixed home manager with impermanence

This commit is contained in:
Leyla Becker 2025-01-01 18:19:32 -06:00
parent 22b40edb24
commit 5abc647d98
4 changed files with 22 additions and 36 deletions

View file

@ -3,23 +3,19 @@
osConfig,
...
}: {
home.persistence."/persist/home/leyla" = lib.mkIf osConfig.host.impermanence.enable {
directories = [
"desktop"
"downloads"
"documents"
".ssh"
".nixops"
".local/share/keyrings"
".local/share/direnv"
{
directory = ".local/share/Steam";
method = "symlink";
}
];
# files = [
# ".screenrc"
# ];
allowOther = true;
config = lib.mkIf osConfig.host.impermanence.enable {
home.persistence."/persist/home/leyla" = {
directories = [
"desktop"
"downloads"
"documents"
".ssh"
".config/gnome-initial-setup-done"
{
directory = ".local/share/Steam";
method = "symlink";
}
];
};
};
}

View file

@ -4,6 +4,5 @@
./flipperzero.nix
./i18n.nix
./openssh.nix
./impermanence.nix
];
}

View file

@ -1,17 +0,0 @@
{
lib,
config,
osConfig,
...
}: {
config = lib.mkIf osConfig.host.impermanence.enable {
home.persistence."/persistent/home/${config.home.username}" = {
directories = [
".ssh"
"desktop"
"downloads"
"documents"
];
};
};
}

View file

@ -277,6 +277,14 @@ in {
normalUsers)
);
systemd = {
tmpfiles.rules =
builtins.map (
user: "d /persist/home/${user.name} 700 ${user.name} ${user.name} -"
)
normalUsers;
};
fileSystems = lib.mkMerge [
{
${SOPS_AGE_KEY_DIRECTORY}.neededForBoot = true;