feat: add keepassxc conf

This commit is contained in:
Nydragon 2024-10-20 10:10:07 +00:00
parent a3a7e0b1da
commit 9d9e8f26d5
Signed by: nydragon
SSH key fingerprint: SHA256:WcjW5NJPQ8Dx4uQDmoIlVPLWE27Od3fxoe0IUvuoPHE
7 changed files with 73 additions and 76 deletions

20
flake.lock generated
View file

@ -390,22 +390,6 @@
"type": "indirect" "type": "indirect"
} }
}, },
"nixpkgs_5": {
"locked": {
"lastModified": 1728492678,
"narHash": "sha256-9UTxR8eukdg+XZeHgxW5hQA9fIKHsKCdOIUycTryeVw=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "5633bcff0c6162b9e4b5f1264264611e950c8ec7",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nysh": { "nysh": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@ -506,7 +490,9 @@
"rustypaste": { "rustypaste": {
"inputs": { "inputs": {
"naersk": "naersk", "naersk": "naersk",
"nixpkgs": "nixpkgs_5", "nixpkgs": [
"nixpkgs"
],
"rustypasteRepo": "rustypasteRepo" "rustypasteRepo": "rustypasteRepo"
}, },
"locked": { "locked": {

View file

@ -43,7 +43,10 @@
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
rustypaste.url = "git+https://git.ccnlc.eu/Nydragon/flakey-rustypaste.git"; rustypaste = {
url = "git+https://git.ccnlc.eu/Nydragon/flakey-rustypaste.git";
inputs.nixpkgs.follows = "nixpkgs";
};
}; };
outputs = outputs =

View file

@ -7,5 +7,6 @@
./fuzzel.nix ./fuzzel.nix
./gammastep.nix # default because I need to protect my peepers ./gammastep.nix # default because I need to protect my peepers
./swww.nix ./swww.nix
./keepassxc.nix
]; ];
} }

View file

@ -0,0 +1,30 @@
{ pkgs, ... }:
let
ini = pkgs.formats.ini { };
in
{
home.file."keepassxc" = {
enable = true;
source = ini.generate "keepassxc.ini" {
General = {
BackupBeforeSave = true;
ConfigVersion = 2;
UseAtomicSaves = false;
};
Browser = {
Enabled = true;
};
GUI = {
ColorPasswords = true;
MinimizeOnClose = true;
MinimizeOnStartup = true;
MinimizeToTray = true;
ShowTrayIcon = true;
TrayIconAppearance = "colorful";
};
};
target = ".config/keepassxc/keepassxc.ini";
};
}

View file

@ -24,7 +24,7 @@
Service = { Service = {
Type = "oneshot"; Type = "oneshot";
ExecStart = "${pkgs.swww}/bin/swww img ${self + "/assets/landscape-pink-paskel.jpg"}"; ExecStart = "${pkgs.swww}/bin/swww img ${self + "/assets/landscape-pink-pastel.jpg"}";
}; };
}; };

View file

@ -1,50 +1,12 @@
{ pkgs, ... }: { pkgs, inputs', ... }:
{ {
programs.neovim = { programs.neovim = {
defaultEditor = true; defaultEditor = true;
package = inputs'.neovim.packages.default;
viAlias = true; viAlias = true;
vimAlias = true; vimAlias = true;
enable = true; enable = true;
withPython3 = false; withPython3 = false;
withRuby = false; withRuby = false;
extraPackages = with pkgs; [
lua
# Language Servers
rust-analyzer
#nixd
nil
pyright
bash-language-server
lua-language-server
zls
typescript
nodePackages_latest.typescript-language-server
superhtml
kdePackages.qtdeclarative # QML formatter
# Formatter
python311Packages.black # Python formatter
clang-tools
nodePackages_latest.prettier # JSON, JS, TS formatter
yamlfmt # YAML formatter
taplo # TOML formatter
rustfmt # Rust formatter
shfmt # Shell, Bash etc.
nixfmt-rfc-style
stylua # lua formatter
# Misc
ripgrep
rustc
cargo
nodejs_22
clang
tree-sitter
fd
luajitPackages.luarocks
wl-clipboard
];
}; };
} }

View file

@ -1,33 +1,48 @@
# Do not modify this file! It was generated by nixos-generate-config # Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes # and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead. # to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }: {
config,
lib,
modulesPath,
...
}:
{ {
imports = imports = [
[ (modulesPath + "/installer/scan/not-detected.nix") (modulesPath + "/installer/scan/not-detected.nix")
]; ];
boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "vmd" "nvme" "rtsx_pci_sdmmc" ]; boot.initrd.availableKernelModules = [
"xhci_pci"
"thunderbolt"
"vmd"
"nvme"
"rtsx_pci_sdmmc"
];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ]; boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
fileSystems."/" = fileSystems."/" = {
{ device = "/dev/disk/by-uuid/1cd96fc2-b17d-4927-8301-53347f311f21"; device = "/dev/disk/by-uuid/1cd96fc2-b17d-4927-8301-53347f311f21";
fsType = "ext4"; fsType = "ext4";
}; };
boot.initrd.luks.devices."luks-514b439f-cc98-46a6-9ca5-a4776c9840f8".device = "/dev/disk/by-uuid/514b439f-cc98-46a6-9ca5-a4776c9840f8"; boot.initrd.luks.devices."luks-514b439f-cc98-46a6-9ca5-a4776c9840f8".device = "/dev/disk/by-uuid/514b439f-cc98-46a6-9ca5-a4776c9840f8";
boot.initrd.luks.devices."luks-c9dd8398-8b01-4d4d-9911-b0f1ed25fdc6".device = "/dev/disk/by-uuid/c9dd8398-8b01-4d4d-9911-b0f1ed25fdc6";
fileSystems."/boot" = fileSystems."/boot" = {
{ device = "/dev/disk/by-uuid/5CCE-7DB8"; device = "/dev/disk/by-uuid/5CCE-7DB8";
fsType = "vfat"; fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ]; options = [
"fmask=0077"
"dmask=0077"
];
}; };
swapDevices = swapDevices = [
[ { device = "/dev/disk/by-uuid/95451266-9dc2-42f0-9bae-28dd7c75224f"; } { device = "/dev/disk/by-uuid/95451266-9dc2-42f0-9bae-28dd7c75224f"; }
]; ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking # Enables DHCP on each ethernet and wireless interface. In case of scripted networking