programs: add goldwarden
Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
parent
311aa76294
commit
ed25b5f4e6
2 changed files with 26 additions and 0 deletions
|
@ -54,6 +54,7 @@ with lib; {
|
|||
gamemode.enable = true;
|
||||
gamescope.enable = true;
|
||||
#// gnome-shell.enable = true;
|
||||
goldwarden.enable = true;
|
||||
gpg.enable = true;
|
||||
#// gtklock.enable = true;
|
||||
hyprlock.enable = true;
|
||||
|
|
25
options/custom/programs/goldwarden.nix
Normal file
25
options/custom/programs/goldwarden.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.custom.programs.goldwarden;
|
||||
in {
|
||||
options.custom.programs.goldwarden = {
|
||||
enable = mkOption {default = false;};
|
||||
flatpak = mkOption {default = true;};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
# https://github.com/quexten/goldwarden
|
||||
programs.goldwarden.enable = true;
|
||||
|
||||
# https://github.com/quexten/goldwarden/wiki/Flatpak-Configuration
|
||||
systemd.user.services.goldwarden = mkIf cfg.flatpak {
|
||||
environment = {
|
||||
GOLDWARDEN_SOCKET_PATH = "%h/.var/app/com.quexten.Goldwarden/data/goldwarden.sock";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Reference in a new issue