HomeManager : Fix ssh in path bug.

This commit is contained in:
Dmitry Voronin 2024-09-19 03:21:47 +03:00
parent 6891bcc54f
commit 2528ba11f9
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
3 changed files with 4 additions and 10 deletions

View file

@ -22,14 +22,6 @@ boot-no-nixconf: fix-ulimit
check:
nix flake check --show-trace
# HACK: https://github.com/nix-community/home-manager/issues/5589
fix-hm:
mv /etc/nix/nix.conf /etc/nix/nix.conf_; \
systemctl restart home-manager-root.service; \
systemctl restart home-manager-voronind.service; \
systemctl restart home-manager-dasha.service; \
mv /etc/nix/nix.conf_ /etc/nix/nix.conf
fix-ulimit:
ulimit -n 999999999

View file

@ -28,6 +28,9 @@ in {
inherit (user) username homeDirectory;
file = import ./config args;
sessionVariables = import ./variable args;
# ISSUE: https://github.com/nix-community/home-manager/issues/5589
extraActivationPath = with pkgs; [ openssh ];
};
xdg = import ./xdg { inherit (user) homeDirectory; };
programs = import ./program args;

View file

@ -39,8 +39,7 @@ in {
echo "Verification failed."
exit 1
};
make switch || true
make fix-hm || true
make switch
'';
after = [ "network-online.target" ];
wants = [ "network-online.target" ];