KeepassXC: install with users.users.<>-packages instead of home manager
This commit is contained in:
parent
638cf16a41
commit
0a358a8643
1 changed files with 24 additions and 27 deletions
|
|
@ -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
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue