install keepassxc

move alacritty settings to separate file
This commit is contained in:
nixos 2023-09-09 17:16:28 +02:00
parent 55baf12f89
commit 7be9d29a0b
3 changed files with 78 additions and 30 deletions

29
alacritty.nix Normal file
View file

@ -0,0 +1,29 @@
{
# Gruvbox theme (https://github.com/alacritty/alacritty-theme/blob/master/themes/gruvbox_dark.yaml)
colors = {
primary = {
background = "0x282828";
foreground = "0xebdbb2";
};
normal = {
black = "0x282828";
red = "0xcc241d";
green = "0x98971a";
yellow = "0xd79921";
blue = "0x458588";
magenta = "0xb16286";
cyan = "0x689d6a";
white = "0xa89984";
};
bright = {
black = "0x928374";
red = "0xfb4934";
green = "0xb8bb26";
yellow = "0xfabd2f";
blue = "0x83a598";
magenta = "0xd3869b";
cyan = "0x8ec07c";
white = "0xebdbb2";
};
};
}

View file

@ -6,42 +6,16 @@
homeDirectory = "/home/pim";
stateVersion = stateVersion;
packages = with pkgs; [];
packages = with pkgs; [
keepassxc
];
};
programs = {
home-manager.enable = true;
alacritty = {
enable = true;
settings = {
# Gruvbox theme (https://github.com/alacritty/alacritty-theme/blob/master/themes/gruvbox_dark.yaml)
colors = {
primary = {
background = "0x282828";
foreground = "0xebdbb2";
};
normal = {
black = "0x282828";
red = "0xcc241d";
green = "0x98971a";
yellow = "0xd79921";
blue = "0x458588";
magenta = "0xb16286";
cyan = "0x689d6a";
white = "0xa89984";
};
bright = {
black = "0x928374";
red = "0xfb4934";
green = "0xb8bb26";
yellow = "0xfabd2f";
blue = "0x83a598";
magenta = "0xd3869b";
cyan = "0x8ec07c";
white = "0xebdbb2";
};
};
};
settings = (import ./alacritty.nix);
};
firefox = {
@ -100,4 +74,6 @@
xsession = {
enable = true;
};
# xdg.configFile."keepassxc/keepassxc.ini".text = pkgs.lib.generators.toINI {} (import ./keepassxc.nix);
}

43
keepassxc.nix Normal file
View file

@ -0,0 +1,43 @@
{
General = {
ConfigVersion = 2;
};
Browser = {
Enabled = true;
CustomProxyLocation = "";
};
FdoSecrets = {
Enabled = true;
ConfirmAccessItem = false;
ConfirmDeleteItem = false;
};
GUI = {
AdvancedSettings = true;
MinimizeOnClose = true;
MinimizeOnStartup = true;
ShowTrayIcon = true;
TrayIconAppearance = "colorful";
};
KeeShare = {
Active = "\"<?xml version=\\\"1.0\\\"?>\\n<KeeShare xmlns:xsd=\\\"http://www.w3.org/2001/XMLSchema\\\" xmlns:xsi=\\\"http://www.w3.org/2001/XMLSchema-instance\\\">\\n <Active/>\\n</KeeShare>\\n\"";
Foreign = "\"<?xml version=\\\"1.0\\\"?>\\n<KeeShare xmlns:xsd=\\\"http://www.w3.org/2001/XMLSchema\\\" xmlns:xsi=\\\"http://www.w3.org/2001/XMLSchema-instance\\\">\\n <Foreign/>\\n</KeeShare>\\n\"";
Own = "\"<?xml version=\\\"1.0\\\"?>\\n<KeeShare xmlns:xsd=\\\"http://www.w3.org/2001/XMLSchema\\\" xmlns:xsi=\\\"http://www.w3.org/2001/XMLSchema-instance\\\">\\n <PrivateKey/>\\n <PublicKey/>\\n</KeeShare>\\n\"";
QuietSuccess = true;
};
PasswordGenerator = {
AdditionalChars = "";
AdvancedMode = false;
ExcludedChars = "";
Length = 40;
SpecialChars = false;
Type = 0;
UpperCase = true;
};
SSHAgent = {
Enabled = true;
};
Security = {
ClearClipboardTimeout = 30;
ClearSearch = false;
};
}