Hi there! I’ve been using the ‘keepass’ package for quite some time. I defined this package in /etc/nixos/configuration.nix So recently I decided I’d try the ‘keepassxc’ package, so I replaced ‘keepass’ with ‘keepassxc’. It installed the KeePassXC package (works great btw) and I was happy. However, the ‘keepass’ package was not removed. It is still installed. I tried removing ‘keepassxc’ from /etc/nixos/configuration.nix and it was removed correctly, but ‘keepass’ is still there.
I’ve been executing ‘nixos-rebuild switch --upgrade’ each time I update the configuration. I’ve tried running ‘nix-collect-garbage’, and I’ve never used ‘nix-env -iA’, but I ran ‘nix-env e keepass’ just in case, but no luck. It just doesn’t want to leave! Any idea why this might be happening?
Oh right sorry! Whoops, I forgot to add that part. It seems odd to me as well:
So for my regular user, which keepass returns /nix/var/nix/profiles/default/bin/keepass. That /bin directory there only contains keepass and .keepass-wrapped.
That’s for my normal user. For root, which keepass gives me: /root/.nix-profile/bin/keepass. And it’s the same situation there. Only keepass and .keepass-wrapped are in that bin directory.
Is it safe to just delete that /bin/ directory if nothing else is there?
The default/ and .nix-profile/ directories both contain bin/ as well as lib/ share/, and manifest.nix