My nixos-rebuild fails because it cannot restart home-manager-klt.service.
The error help suggest to Move or remove the above files and try again.
However I do not see any file names.
Here the output
➜ sudo nix-channel --list
home-manager https://github.com/nix-community/home-manager/archive/release-25.05.tar.gz
nixos https://nixos.org/channels/nixos-25.05
➜ sudo nixos-rebuild switch
building Nix...
building the system configuration...
evaluation warning: substituteAll is deprecated and will be removed in 25.11. Use replaceVars instead.
activating the configuration...
setting up /etc...
reloading user units for klt...
restarting sysinit-reactivation.target
the following new units were started: NetworkManager-dispatcher.service
warning: the following units failed: home-manager-klt.service
× home-manager-klt.service - Home Manager environment for klt
Loaded: loaded (/etc/systemd/system/home-manager-klt.service; enabled; preset: ignored)
Active: failed (Result: exit-code) since Fri 2025-08-01 08:26:41 CEST; 472ms ago
Invocation: 4811641be7e446ad99db7607b638d9fe
Process: 11447 ExecStart=/nix/store/d6mhq77jyaidz98k11wj0xragdkmw1a0-hm-setup-env /nix/store/f4qkz7fa17xcm4lvlx92yvd89j1cln9y-home-manager-generation (code=exited, status=1/FAILURE)
Main PID: 11447 (code=exited, status=1/FAILURE)
IP: 0B in, 0B out
IO: 0B read, 0B written
Mem peak: 6M
CPU: 129ms
Aug 01 08:26:41 maxiTower hm-activate-klt[11629]: Please do one of the following:
Aug 01 08:26:41 maxiTower hm-activate-klt[11629]: - Move or remove the above files and try again.
Aug 01 08:26:41 maxiTower hm-activate-klt[11629]: - In standalone mode, use 'home-manager switch -b backup' to back up
Aug 01 08:26:41 maxiTower hm-activate-klt[11629]: files automatically.
Aug 01 08:26:41 maxiTower hm-activate-klt[11629]: - When used as a NixOS or nix-darwin module, set
Aug 01 08:26:41 maxiTower hm-activate-klt[11629]: 'home-manager.backupFileExtension'
Aug 01 08:26:41 maxiTower hm-activate-klt[11629]: to, for example, 'backup' and rebuild.
Aug 01 08:26:41 maxiTower systemd[1]: home-manager-klt.service: Main process exited, code=exited, status=1/FAILURE
Aug 01 08:26:41 maxiTower systemd[1]: home-manager-klt.service: Failed with result 'exit-code'.
Aug 01 08:26:41 maxiTower systemd[1]: Failed to start Home Manager environment for klt.
warning: error(s) occurred while switching to the new configuration
Has anyone an idea what to do?
I import home-manager into my configuration.nix:
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix
...
# Include Home Manager Config
./home.nix
# Update PostGre
# ./postgresUpdateScript.nix
] ++ prop.specificImports;