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,36 +23,33 @@ let
in 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 = { home-manager = {
extraSpecialArgs = { kpxcSettings = kpxcSettings; }; extraSpecialArgs = { kpxcSettings = kpxcSettings; };
users.toast = { config, pkgs, kpxcSettings, ... }: { users.toast = { config, pkgs, kpxcSettings, ... }: {
home = { # No module for KeePassXC config :(
packages = [ pkgs.keepassxc ]; home.file = {
# No module for KeePassXC config :( ".config/keepassxc/keepassxc.ini".text = kpxcSettings;
file = { # For some reason the autostart .desktop is not the same as the regular one
".config/keepassxc/keepassxc.ini".text = kpxcSettings; ".config/autostart/org.keepassxc.KeePassXC.desktop".text = ''
# For some reason the autostart .desktop is not the same as the regular one [Desktop Entry]
".config/autostart/org.keepassxc.KeePassXC.desktop".text = '' Name=KeePassXC
[Desktop Entry] GenericName=Password Manager
Name=KeePassXC Exec=keepassxc
GenericName=Password Manager TryExec=keepassxc
Exec=keepassxc Icon=keepassxc
TryExec=keepassxc StartupWMClass=keepassxc
Icon=keepassxc StartupNotify=true
StartupWMClass=keepassxc Terminal=false
StartupNotify=true Type=Application
Terminal=false Version=1.0
Type=Application Categories=Utility;Security;Qt;
Version=1.0 MimeType=application/x-keepass2;
Categories=Utility;Security;Qt; X-GNOME-Autostart-enabled=true
MimeType=application/x-keepass2; X-GNOME-Autostart-Delay=2
X-GNOME-Autostart-enabled=true X-KDE-autostart-after=panel
X-GNOME-Autostart-Delay=2 X-LXQt-Need-Tray=true
X-KDE-autostart-after=panel '';
X-LXQt-Need-Tray=true
'';
};
}; };
}; };
}; };