keepassxc: Convert to usage of home-manager module
Signed-off-by: George Kaklamanos <gkaklas@gkaklas.gr>
This commit is contained in:
parent
ddd5c24a64
commit
bae215ec34
3 changed files with 43 additions and 35 deletions
|
@ -8,6 +8,7 @@
|
||||||
./cli.nix
|
./cli.nix
|
||||||
./mpv.nix
|
./mpv.nix
|
||||||
./ssh.nix
|
./ssh.nix
|
||||||
|
./keepassxc.nix
|
||||||
];
|
];
|
||||||
services.syncthing = {
|
services.syncthing = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -18,39 +18,4 @@
|
||||||
rootless_storage_path="/mnt/storage/.containers"
|
rootless_storage_path="/mnt/storage/.containers"
|
||||||
driver="btrfs"
|
driver="btrfs"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
home.file.".config/keepassxc/keepassxc.ini".text = ''
|
|
||||||
[General]
|
|
||||||
ConfigVersion=2
|
|
||||||
MinimizeAfterUnlock=true
|
|
||||||
OpenPreviousDatabasesOnStartup=false
|
|
||||||
RememberLastDatabases=false
|
|
||||||
RememberLastKeyFiles=false
|
|
||||||
|
|
||||||
[Browser]
|
|
||||||
Enabled=true
|
|
||||||
|
|
||||||
[GUI]
|
|
||||||
CompactMode=true
|
|
||||||
MonospaceNotes=true
|
|
||||||
|
|
||||||
[PasswordGenerator]
|
|
||||||
AdditionalChars=
|
|
||||||
AdvancedMode=true
|
|
||||||
Dashes=false
|
|
||||||
ExcludedChars=
|
|
||||||
Length=64
|
|
||||||
Logograms=true
|
|
||||||
LowerCase=true
|
|
||||||
Numbers=true
|
|
||||||
Punctuation=false
|
|
||||||
UpperCase=true
|
|
||||||
|
|
||||||
[SSHAgent]
|
|
||||||
Enabled=true
|
|
||||||
|
|
||||||
[Security]
|
|
||||||
IconDownloadFallback=true
|
|
||||||
LockDatabaseScreenLock=false
|
|
||||||
'';
|
|
||||||
}
|
}
|
||||||
|
|
42
home-manager/keepassxc.nix
Normal file
42
home-manager/keepassxc.nix
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
{config, ...}: {
|
||||||
|
home.file.keepassxc = {
|
||||||
|
target = ".var/app/org.keepassxc.KeePassXC/config/keepassxc/keepassxc.ini";
|
||||||
|
# TODO is there a better way?
|
||||||
|
source = config.lib.file.mkOutOfStoreSymlink config.xdg.configHome + /keepassxc/keepassxc.ini;
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.keepassxc.enable = true;
|
||||||
|
programs.keepassxc.package = null; # Flatpak
|
||||||
|
programs.keepassxc.settings = {
|
||||||
|
General = {
|
||||||
|
MinimizeAfterUnlock = true;
|
||||||
|
OpenPreviousDatabasesOnStartup = false;
|
||||||
|
RememberLastDatabases = false;
|
||||||
|
RememberLastKeyFiles = false;
|
||||||
|
MinimizeOnCopy = true;
|
||||||
|
};
|
||||||
|
GUI = {
|
||||||
|
CompactMode = true;
|
||||||
|
MonospaceNotes = true;
|
||||||
|
CheckForUpdates = false;
|
||||||
|
ColorPasswords = true;
|
||||||
|
};
|
||||||
|
PasswordGenerator = {
|
||||||
|
AdvancedMode = true;
|
||||||
|
Length = 64;
|
||||||
|
};
|
||||||
|
Browser = {
|
||||||
|
Enabled = true;
|
||||||
|
BestMatchOnly = true;
|
||||||
|
};
|
||||||
|
SSHAgent = {
|
||||||
|
Enabled = true;
|
||||||
|
# TODO get runtime dir dynamically
|
||||||
|
AuthSockOverride = "/run/user/1000/gnupg/S.gpg-agent.ssh";
|
||||||
|
};
|
||||||
|
Security = {
|
||||||
|
IconDownloadFallback = true;
|
||||||
|
LockDatabaseScreenLock = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue