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,14 +23,12 @@ 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 = {
|
|
||||||
packages = [ pkgs.keepassxc ];
|
|
||||||
# No module for KeePassXC config :(
|
# No module for KeePassXC config :(
|
||||||
file = {
|
home.file = {
|
||||||
".config/keepassxc/keepassxc.ini".text = kpxcSettings;
|
".config/keepassxc/keepassxc.ini".text = kpxcSettings;
|
||||||
# For some reason the autostart .desktop is not the same as the regular one
|
# For some reason the autostart .desktop is not the same as the regular one
|
||||||
".config/autostart/org.keepassxc.KeePassXC.desktop".text = ''
|
".config/autostart/org.keepassxc.KeePassXC.desktop".text = ''
|
||||||
|
|
@ -55,5 +53,4 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue