Skip to content

Commit

Permalink
+ fix home-manager on home on tmpfs
Browse files Browse the repository at this point in the history
  • Loading branch information
oluceps committed Nov 9, 2023
1 parent a41d6ac commit 588d42e
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions misc.nix
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,14 @@
format = "$username$hostname$directory$git_branch$git_commit$git_status$nix_shell$cmd_duration$line_break$python$character";
};
};
# system.activationScripts = {
# stdio.text =
# ''
# '';
# };
system.activationScripts = {
# workaround with tmpfs as home and home-manager, since it not preserve
# ~/.nix-profile symlink after reboot.
profile-init.text =
''
ln -sfn /home/${user}/.local/state/nix/profiles/profile /home/${user}/.nix-profile
'';
};

}

Expand Down

0 comments on commit 588d42e

Please sign in to comment.