feat: enable zoxide, nix-index-database, comma and a deadnix check

This commit is contained in:
oddlama 2023-09-18 02:10:44 +02:00
parent ecd7eece1f
commit 905ea34de9
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
10 changed files with 50 additions and 15 deletions

View file

@ -14,7 +14,6 @@ in {
[
".cache/fontconfig"
".cache/nix" # nix eval cache
".cache/nix-index"
".config/dconf" # some apps store their configuration using dconf
]
++ optionals nixosConfig.hardware.nvidia.modesetting.enable [

View file

@ -5,7 +5,18 @@
./zsh
];
programs.zoxide = {
enable = true;
options = ["--cmd p"];
};
# nix-index-database is enabled globally for each user in modules/config/home-manager.nix
programs.nix-index.enable = true;
programs.nix-index-database.comma.enable = true;
home.persistence."/state".directories = [
".local/share/zoxide"
];
home.shellAliases = {
l = "ls -lahF --group-directories-first --show-control-chars --quoting-style=escape --color=auto";

View file

@ -59,11 +59,6 @@
# TODO gpg switch to sk
# TODO some font icons not showing neovim because removed from nerdfonts, replace with bertter .
shellAliases = {
p = "cd ~/projects";
zf = "zathura --fork"; # XXX: do i need this or can i just xdg-open?
};
persistence."/persist".directories = [
"projects"
];

View file

@ -12,7 +12,7 @@
in {
accounts.email.accounts =
lib.flip lib.mapAttrs' config.userSecrets.accounts.email
(n: v:
(_n: v:
lib.nameValuePair v.address ({
# TODO genericize
passwordCommand =