mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-11 07:10:39 +02:00
feat: modularize users
This commit is contained in:
parent
63abd85eb0
commit
c81de3eff9
6 changed files with 4 additions and 10 deletions
|
@ -1,35 +0,0 @@
|
|||
{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;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue