Open spencer3035 opened 2 weeks ago
I'm using home manager on Arch Linux and I have the same issue. The config is pretty much the same, I even tried to remove sops config (in case a path was wrong or something). When I rebuild I get this message:
❯ rebuild
Starting Home Manager activation
Activating checkFilesChanged
Activating checkLinkTargets
Activating writeBoundary
Activating installPackages
replacing old 'home-manager-path'
installing 'home-manager-path'
Activating linkGeneration
Cleaning up orphan links from /home/user
No change so reusing latest profile generation 306
Creating home file links in /home/user
Activating onFilesChange
Activating reloadSystemd
The user systemd session is degraded:
UNIT LOAD ACTIVE SUB DESCRIPTION
● sops-nix.service not-found failed failed sops-nix.service
Legend: LOAD → Reflects whether the unit definition was properly loaded.
ACTIVE → The high-level unit activation state, i.e. generalization of SUB.
SUB → The low-level unit activation state, values depend on unit type.
1 loaded units listed.
Attempting to reload services anyway...
Maybe @SebTM has an idea. I am not really using the home-manager integration.
I can't reproduce the issue (built with sops-nix b5974d4331fb6c893e808977a2e1a6d34b3162d6
and home-manager 36317d4d38887f7629876b0e43c8d9593c5cc48d
), the major difference to my config I assume is the case in both cases is that I use home-manager as nixosModule not standalone.
I am trying to set up sops as a home-manager module. Ive followed the readme mostly, but it seems like it doen't install the sops-nix.service properly. Here are the last few lines after I do
home-manager switch --flake /path/to/flake.nix
Predictably,
systemctl status --user sops-nix.service
and variations also produce a service not found error.Trimmed down version of my flake.nix:
Trimmed down version of my home.nix file
From my understanding, the service should be automatically installed? I'm not sure if there is a small detail I missed or there is a bug in the version of sops I am using.
Any help is appreciated.