mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 11:43:55 -05:00
keepassxc: added settings option and moved current settings to home/aly
This commit is contained in:
parent
5deb652a5d
commit
ea8388f1d1
|
@ -5,48 +5,10 @@
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
config = lib.mkIf config.alyraffauf.apps.keepassxc.enable {
|
config = lib.mkIf config.alyraffauf.apps.keepassxc.enable {
|
||||||
home = {
|
home.packages = [pkgs.keepassxc];
|
||||||
file.".cache/keepassxc/keepassxc.ini".text = lib.generators.toINI {} {
|
|
||||||
General.LastActiveDatabase = "/${config.home.homeDirectory}/sync/Passwords.kdbx";
|
|
||||||
};
|
|
||||||
packages = [pkgs.keepassxc];
|
|
||||||
};
|
|
||||||
|
|
||||||
xdg.configFile."keepassxc/keepassxc.ini".text = lib.generators.toINI {} {
|
xdg.configFile."keepassxc/keepassxc.ini".text =
|
||||||
Browser = {
|
lib.generators.toINI {}
|
||||||
AlwaysAllowAccess = true;
|
config.alyraffauf.apps.keepassxc.settings;
|
||||||
Enabled = true;
|
|
||||||
SearchInAllDatabases = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
General = {
|
|
||||||
ConfigVersion = 2;
|
|
||||||
HideWindowOnCopy = true;
|
|
||||||
MinimizeAfterUnlock = false;
|
|
||||||
MinimizeOnOpenUrl = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
GUI = {
|
|
||||||
ApplicationTheme = "classic";
|
|
||||||
ColorPasswords = false;
|
|
||||||
CompactMode = true;
|
|
||||||
MinimizeOnClose = true;
|
|
||||||
MinimizeOnStartup = false;
|
|
||||||
MinimizeToTray = true;
|
|
||||||
ShowTrayIcon = true;
|
|
||||||
TrayIconAppearance = "colorful";
|
|
||||||
};
|
|
||||||
|
|
||||||
Security = {
|
|
||||||
ClearClipboardTimeout = 15;
|
|
||||||
EnableCopyOnDoubleClick = true;
|
|
||||||
IconDownloadFallback = true;
|
|
||||||
LockDatabaseScreenLock = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
SSHAgent = {
|
|
||||||
Enabled = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,7 +23,14 @@
|
||||||
firefox.enable = lib.mkEnableOption "Firefox web browser.";
|
firefox.enable = lib.mkEnableOption "Firefox web browser.";
|
||||||
fuzzel.enable = lib.mkEnableOption "Fuzzel app launcher.";
|
fuzzel.enable = lib.mkEnableOption "Fuzzel app launcher.";
|
||||||
fzf.enable = lib.mkEnableOption "Fzf fuzzy file finder.";
|
fzf.enable = lib.mkEnableOption "Fzf fuzzy file finder.";
|
||||||
keepassxc.enable = lib.mkEnableOption "KeePassXC password manager.";
|
keepassxc = {
|
||||||
|
enable = lib.mkEnableOption "KeePassXC password manager.";
|
||||||
|
settings = lib.mkOption {
|
||||||
|
description = "KeePassXC settings.";
|
||||||
|
default = {};
|
||||||
|
type = lib.types.attrs;
|
||||||
|
};
|
||||||
|
};
|
||||||
librewolf.enable = lib.mkEnableOption "Librewolf web browser.";
|
librewolf.enable = lib.mkEnableOption "Librewolf web browser.";
|
||||||
mako.enable = lib.mkEnableOption "Mako notification daemon.";
|
mako.enable = lib.mkEnableOption "Mako notification daemon.";
|
||||||
neofetch.enable = lib.mkEnableOption "Neofetch.";
|
neofetch.enable = lib.mkEnableOption "Neofetch.";
|
||||||
|
|
|
@ -7,9 +7,10 @@
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
home = {
|
home = {
|
||||||
username = "aly";
|
|
||||||
homeDirectory = "/home/aly";
|
homeDirectory = "/home/aly";
|
||||||
stateVersion = "24.05";
|
file.".cache/keepassxc/keepassxc.ini".text = lib.generators.toINI {} {
|
||||||
|
General.LastActiveDatabase = "${config.home.homeDirectory}/sync/Passwords.kdbx";
|
||||||
|
};
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
browsh
|
browsh
|
||||||
curl
|
curl
|
||||||
|
@ -27,6 +28,8 @@
|
||||||
webcord
|
webcord
|
||||||
wget
|
wget
|
||||||
];
|
];
|
||||||
|
stateVersion = "24.05";
|
||||||
|
username = "aly";
|
||||||
};
|
};
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
|
@ -100,7 +103,45 @@
|
||||||
fastfetch.enable = true;
|
fastfetch.enable = true;
|
||||||
firefox.enable = true;
|
firefox.enable = true;
|
||||||
fzf.enable = true;
|
fzf.enable = true;
|
||||||
keepassxc.enable = true;
|
keepassxc = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
Browser = {
|
||||||
|
AlwaysAllowAccess = true;
|
||||||
|
Enabled = true;
|
||||||
|
SearchInAllDatabases = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
General = {
|
||||||
|
ConfigVersion = 2;
|
||||||
|
HideWindowOnCopy = true;
|
||||||
|
MinimizeAfterUnlock = false;
|
||||||
|
MinimizeOnOpenUrl = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
GUI = {
|
||||||
|
ApplicationTheme = "classic";
|
||||||
|
ColorPasswords = false;
|
||||||
|
CompactMode = true;
|
||||||
|
MinimizeOnClose = true;
|
||||||
|
MinimizeOnStartup = false;
|
||||||
|
MinimizeToTray = true;
|
||||||
|
ShowTrayIcon = true;
|
||||||
|
TrayIconAppearance = "colorful";
|
||||||
|
};
|
||||||
|
|
||||||
|
Security = {
|
||||||
|
ClearClipboardTimeout = 15;
|
||||||
|
EnableCopyOnDoubleClick = true;
|
||||||
|
IconDownloadFallback = true;
|
||||||
|
LockDatabaseScreenLock = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
SSHAgent = {
|
||||||
|
Enabled = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
neofetch.enable = true;
|
neofetch.enable = true;
|
||||||
neovim.enable = true;
|
neovim.enable = true;
|
||||||
tmux.enable = true;
|
tmux.enable = true;
|
||||||
|
|
Loading…
Reference in a new issue