From 25ca3bb7cca4c79a28faa356b43581af98f2f73e Mon Sep 17 00:00:00 2001 From: Toast Date: Tue, 27 Jun 2023 00:40:33 +0200 Subject: [PATCH] Install KeePassXC using home-manager --- roles/desktop/default.nix | 1 + roles/desktop/keepassxc.nix | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 roles/desktop/keepassxc.nix diff --git a/roles/desktop/default.nix b/roles/desktop/default.nix index b13a242..ac8b5dc 100755 --- a/roles/desktop/default.nix +++ b/roles/desktop/default.nix @@ -4,5 +4,6 @@ imports = [ ./discord.nix ./firefox.nix + ./keepassxc.nix ]; } diff --git a/roles/desktop/keepassxc.nix b/roles/desktop/keepassxc.nix new file mode 100644 index 0000000..677c828 --- /dev/null +++ b/roles/desktop/keepassxc.nix @@ -0,0 +1,20 @@ +{ config, pkgs, ... }: + +{ + # I'm only using keepass on my user, so I'm installing it with home-manager + home-manager = { + /* + TODO: move home-manager settings into the common role + They are not keepass specific, so they really should + not be here. I'm too lazy to do it now tho :P + */ + backupFileExtension = "backup"; + useGlobalPkgs = true; + users.toast = { config, pkgs, ... }: { + home = { + stateVersion = "23.05"; + packages = [ pkgs.keepassxc ]; + }; + }; + }; +}