1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-11 07:10:39 +02:00

feat: add lidswitch and some modules

This commit is contained in:
oddlama 2022-12-14 19:39:51 +01:00
parent 4b4268b537
commit 4db499a5d3
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
12 changed files with 222 additions and 47 deletions

View file

@ -0,0 +1,39 @@
{
lib,
pkgs,
...
}: {
home = {
extraOutputsToInstall = ["doc" "devdoc"];
file.gdbinit = {
target = ".gdbinit";
text = ''
set auto-load safe-path /
'';
};
packages = with pkgs; [
git-lfs
nix-update
nixpkgs-review
];
};
programs = {
direnv = {
enable = true;
nix-direnv.enable = true;
stdlib = ''
: ''${XDG_CACHE_HOME:=$HOME/.cache}
declare -A direnv_layout_dirs
direnv_layout_dir() {
echo "''${direnv_layout_dirs[$PWD]:=$(
echo -n "$XDG_CACHE_HOME"/direnv/layouts/
echo -n "$PWD" | shasum | cut -d ' ' -f 1
)}"
}
'';
};
nix-index.enable = true;
};
}