Results 15 comments of Ivan Mincik

Hi @berbiche , thanks for looking and the problem. Full log is here: ``` $ journalctl --no-pager --full --user -u home-manager-auto-upgrade.service --since=-7d aug 04 10:52:03 imincik-nx systemd[2344]: Started Home Manager...

In case it helps, content of: /nix/store/8fgs2az0z3hw1c8j46fkcynkcqb0mhq3-home-manager-auto-upgrade ``` $ cat /nix/store/8fgs2az0z3hw1c8j46fkcynkcqb0mhq3-home-manager-auto-upgrade #!/nix/store/iffl6dlplhv22i2xy7n1w51a5r631kmi-bash-5.1-p16/bin/bash echo "Update Nix's channels" /nix/store/3vpyn2qz5ay057nq9x68sh0r328d77ng-nix-2.8.1/bin/nix-channel --update echo "Upgrade Home Manager" /nix/store/zjcpc7dp2k1ya82rb7c9lca9zkqp4891-home-manager/bin/home-manager switch ```

I was checking the git history of `home-manager-auto-upgrade.nix` and there is none since it was merged in to repository. Is this module working for anybody or am I the first...

I added path to the `nix` binary by adding following to my configuration: ``` systemd.user.services.home-manager-auto-upgrade.Service.Environment = let path = with pkgs; lib.makeSearchPath "bin" [ nix ]; in [ "PATH=${path}" ];...

`NIX_PATH` for my user systemd environment is following ``` $ systemctl --user show-environment | grep NIX_PATH NIX_PATH=nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos:nixos-config=/etc/nixos/configuration.nix:/nix/var/nix/profiles/per-user/root/channels ```

Here is configuration which works for me: ``` # automatic home upgrades # fix for https://github.com/nix-community/home-manager/issues/3127 systemd.user.sessionVariables = { NIX_PATH = "/home/imincik/.nix-defexpr/channels:nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos:nixos-config=/etc/nixos/configuration.nix:/nix/var/nix/profiles/per-user/root/channels"; }; systemd.user.services.home-manager-auto-upgrade.Service.Environment = let path = with pkgs;...

I will try to create PR. My current config version is: ``` # automatic home upgrades # fix for https://github.com/nix-community/home-manager/issues/3127 systemd.user.sessionVariables = { NIX_PATH = "$HOME/.nix-defexpr/channels:$NIX_PATH"; }; systemd.user.services.home-manager-auto-upgrade.Service.Environment = let...

`services.home-manager-auto-upgrade` is already implemented in [modules/services/home-manager-auto-upgrade.nix](https://github.com/nix-community/home-manager/blob/master/modules/services/home-manager-auto-upgrade.nix) .

I am trying to copy closure of one of my systems to another and it is freezing all the time. My command: ``` nix copy --verbose --to "ssh://?compress=true" .#nixosConfigurations..config.system.build.toplevel ```