KeepassXC: install with users.users.<>-packages instead of home manager

This commit is contained in:
Toast 2023-08-30 00:36:38 +02:00
parent 638cf16a41
commit 0a358a8643

View file

@ -23,14 +23,12 @@ let
in
{
# I'm only using keepass on my user, so I'm installing it with home-manager
users.users.toast.packages = [ pkgs.keepassxc ];
home-manager = {
extraSpecialArgs = { kpxcSettings = kpxcSettings; };
users.toast = { config, pkgs, kpxcSettings, ... }: {
home = {
packages = [ pkgs.keepassxc ];
# No module for KeePassXC config :(
file = {
home.file = {
".config/keepassxc/keepassxc.ini".text = kpxcSettings;
# For some reason the autostart .desktop is not the same as the regular one
".config/autostart/org.keepassxc.KeePassXC.desktop".text = ''
@ -55,5 +53,4 @@ in
};
};
};
};
}