Open jellu-cat opened 9 months ago
I did as it said and set the backup file extension, the first time it worked but the error came back again upon other updates to home manager.
[scientiac@einstein:~/Einstein]$ sudo nixos-rebuild switch --flake .
[sudo] password for scientiac:
building the system configuration...
activating the configuration...
setting up /etc...
reloading user units for scientiac...
restarting sysinit-reactivation.target
warning: the following units failed: home-manager-scientiac.service
× home-manager-scientiac.service - Home Manager environment for scientiac
Loaded: loaded (/etc/systemd/system/home-manager-scientiac.service; enabled; preset: enabled)
Active: failed (Result: exit-code) since Sat 2024-09-28 21:27:41 +0545; 287ms ago
Duration: 37min 16.572s
Invocation: ef154fdd388241deb53162559c5af09e
Process: 34022 ExecStart=/nix/store/hh1d3nhigpky6d6shbnpxmhv4385fhgs-hm-setup-env /nix/store/cam2wz85y9c8ifpir71c8n4jgpipr59d-home-manager-generation (code=exited, status=1/FAILURE)
Main PID: 34022 (code=exited, status=1/FAILURE)
IP: 0B in, 0B out
Mem peak: 6.6M
CPU: 149ms
Sep 28 21:27:41 einstein hm-activate-scientiac[34044]: Please do one of the following:
Sep 28 21:27:41 einstein hm-activate-scientiac[34044]: - Move or remove the above files and try again.
Sep 28 21:27:41 einstein hm-activate-scientiac[34044]: - In standalone mode, use 'home-manager switch -b backup' to back up
Sep 28 21:27:41 einstein hm-activate-scientiac[34044]: files automatically.
Sep 28 21:27:41 einstein hm-activate-scientiac[34044]: - When used as a NixOS or nix-darwin module, set
Sep 28 21:27:41 einstein hm-activate-scientiac[34044]: 'home-manager.backupFileExtension'
Sep 28 21:27:41 einstein hm-activate-scientiac[34044]: to, for example, 'backup' and rebuild.
Sep 28 21:27:41 einstein systemd[1]: home-manager-scientiac.service: Main process exited, code=exited, status=1/FAILURE
Sep 28 21:27:41 einstein systemd[1]: home-manager-scientiac.service: Failed with result 'exit-code'.
Sep 28 21:27:41 einstein systemd[1]: Failed to start Home Manager environment for scientiac.
warning: error(s) occurred while switching to the new configuration
Are you following the right branch?
Is there an existing issue for this?
Issue description
Hello. I'm using NixOS and I want to use home-manager, but I'm having problems doing this. My first approach was to follow the configuration in nixos-wiki as this:
Doing
sudo nixos-rebuild switch
results in this:I have tried the solution provided in #1140, and checked #3910, but the problem in either issues seem different. I'm guessing is a problem with the lock files, but I'm stuck.
Any help would be appreciated!
Maintainer CC
No response
System information