lambdajon / confs

My configurations
Do What The F*ck You Want To Public License
0 stars 0 forks source link

Home manager service failed #2

Open lambdajon opened 2 days ago

lambdajon commented 2 days ago

Describe the bug

home-manager service is not working after adding from drawin.

Platform: NixOs

➜  confs git:(main) sudo nixos-rebuild switch --flake .#Alpha
building the system configuration...
updating GRUB 2 menu...
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
lsblk: /dev/mapper/no*[0-9]: not a block device
lsblk: /dev/mapper/block*[0-9]: not a block device
lsblk: /dev/mapper/devices*[0-9]: not a block device
lsblk: /dev/mapper/found*[0-9]: not a block device
activating the configuration...
setting up /etc...
reloading user units for lambdajon...
/home/lambdajon/.profile: line 1: /etc/profiles/per-user/lambdajon/etc/profile.d/hm-session-vars.sh: No such file or directory
restarting sysinit-reactivation.target
warning: the following units failed: home-manager-lambdajon.service

× home-manager-lambdajon.service - Home Manager environment for lambdajon
     Loaded: loaded (/etc/systemd/system/home-manager-lambdajon.service; enabled; preset: enabled)
     Active: failed (Result: exit-code) since Wed 2024-09-25 17:22:33 +05; 48ms ago
    Process: 32154 ExecStart=/nix/store/qa3ndiwqwvi71pkjmj7v862sci9ikn9m-hm-setup-env /nix/store/gqxn262f16sfbk2dvwz2mh6x1ry0rb5w-home-manager-generation (code=exited, status=1/FAILURE)
   Main PID: 32154 (code=exited, status=1/FAILURE)
         IP: 0B in, 0B out
        CPU: 112ms

Sep 25 17:22:33 Alpha hm-activate-lambdajon[32238]: Please do one of the following:
Sep 25 17:22:33 Alpha hm-activate-lambdajon[32238]: - Move or remove the above files and try again.
Sep 25 17:22:33 Alpha hm-activate-lambdajon[32238]: - In standalone mode, use 'home-manager switch -b backup' to back up
Sep 25 17:22:33 Alpha hm-activate-lambdajon[32238]:   files automatically.
Sep 25 17:22:33 Alpha hm-activate-lambdajon[32238]: - When used as a NixOS or nix-darwin module, set
Sep 25 17:22:33 Alpha hm-activate-lambdajon[32238]:     'home-manager.backupFileExtension'
Sep 25 17:22:33 Alpha hm-activate-lambdajon[32238]:   to, for example, 'backup' and rebuild.
Sep 25 17:22:33 Alpha systemd[1]: home-manager-lambdajon.service: Main process exited, code=exited, status=1/FAILURE
Sep 25 17:22:33 Alpha systemd[1]: home-manager-lambdajon.service: Failed with result 'exit-code'.
Sep 25 17:22:33 Alpha systemd[1]: Failed to start Home Manager environment for lambdajon.
warning: error(s) occurred while switching to the new configuration
orzklv commented 1 day ago

Probably, while copying files to path'es [reference] it detected existing files and can't proceed, so it's asking you to backup you thangs beforehand. You need to delete existing files in there and then proceed with applying configs.