Desktop/keepassxc: install using home-manager

This commit is contained in:
Toast 2023-12-30 14:57:20 +01:00
parent dcd6b194cb
commit 63062475e2

View file

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