Open voronind-com opened 5 months ago
Another relevant part is nix.conf
:
# WARNING: this file is generated from the nix.* options in
# your NixOS configuration, typically
# /etc/nixos/configuration.nix. Do not edit it!
allowed-users = *
auto-optimise-store = true
builders-use-substitutes = true
cores = 0
experimental-features = nix-command flakes
keep-derivations = true
keep-outputs = true
max-jobs = 0
min-free = 50000000000
require-sigs = true
sandbox = true
sandbox-fallback = false
substituters = ssh-ng://nixbuilder
system-features = nixos-test benchmark big-parallel kvm
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= nixbuilder-1:Skghjixd8lPzNe2ZEgYLM9Pu/wF9wiZtZGsdm3bo9h0=
trusted-substituters = ssh-ng://nixbuilder
trusted-users = root
extra-sandbox-paths =
If I remove the file the builder will be disabled and the switch happens correctly.
If I understand the issue correctly, HM needs ssh in its path when doing the switch because of a remote builder over ssh and jobs = 0.
I guess the issue is that ssh needed for the builder is missing in https://github.com/nix-community/home-manager/blob/d2493de5cd1da06b6a4c3e97f4e7d5dd791df457/modules/home-environment.nix#L680-L682
Sure I can add it to home.extraActivationPath
, but shouldn't this be upstreamed for NixOS support?
Edit: can confirm that adding openssh
to extraActivationPath
fixes the issue.
@rycee I guess this is not needed for non-nixos installations as ssh client only needed in a scenario of using NixOS distributed builds. Can this be added to nixos module when nix.distributedBuilds
is true only?
Are you following the right branch?
Is there an existing issue for this?
Issue description
I have the exact same configuration for users and root. Normal users activate HM successfully, but the root user fails with this error:
I have openssh available system-wide and working.
I have remote builds enabled like this:
Maintainer CC
No response
System information