Compare commits

..

2 commits

Author SHA1 Message Date
16d52b4ddf home/nix-direnv: use unreleased version from flake
necessary to get integrated [GC root
refreshing](https://github.com/nix-community/nix-direnv/pull/631).

It currently looks like nix-direnv is going to be integrated into direnv
itself, so maybe nor new releases will be made until then.
2026-01-27 23:17:42 +01:00
aeb29c17a2 overlay: clean up structure 2026-01-27 23:16:27 +01:00
4 changed files with 103 additions and 31 deletions

69
flake.lock generated
View file

@ -53,6 +53,27 @@
} }
}, },
"flake-parts_2": { "flake-parts_2": {
"inputs": {
"nixpkgs-lib": [
"nix-direnv",
"nixpkgs"
]
},
"locked": {
"lastModified": 1768135262,
"narHash": "sha256-PVvu7OqHBGWN16zSi6tEmPwwHQ4rLPU9Plvs8/1TUBY=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "80daad04eddbbf5a4d883996a73f3f542fa437ac",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "flake-parts",
"type": "github"
}
},
"flake-parts_3": {
"inputs": { "inputs": {
"nixpkgs-lib": [ "nixpkgs-lib": [
"nur", "nur",
@ -177,6 +198,28 @@
"type": "github" "type": "github"
} }
}, },
"nix-direnv": {
"inputs": {
"flake-parts": "flake-parts_2",
"nixpkgs": [
"nixpkgs"
],
"treefmt-nix": "treefmt-nix"
},
"locked": {
"lastModified": 1768704530,
"narHash": "sha256-BASsdRYo8t/himZisgWW524t86pxuC0H3/Dv8sqR8sM=",
"owner": "nix-community",
"repo": "nix-direnv",
"rev": "29bb68202897f6e8653d28f64c5525c2c502f19c",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nix-direnv",
"type": "github"
}
},
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1769302137, "lastModified": 1769302137,
@ -259,7 +302,7 @@
}, },
"nur": { "nur": {
"inputs": { "inputs": {
"flake-parts": "flake-parts_2", "flake-parts": "flake-parts_3",
"nixpkgs": "nixpkgs_3" "nixpkgs": "nixpkgs_3"
}, },
"locked": { "locked": {
@ -308,11 +351,12 @@
"lanzaboote": "lanzaboote", "lanzaboote": "lanzaboote",
"mysecrets": "mysecrets", "mysecrets": "mysecrets",
"nix-darwin": "nix-darwin", "nix-darwin": "nix-darwin",
"nix-direnv": "nix-direnv",
"nixos-hardware": "nixos-hardware", "nixos-hardware": "nixos-hardware",
"nixos-unstable": "nixos-unstable", "nixos-unstable": "nixos-unstable",
"nixpkgs": "nixpkgs_2", "nixpkgs": "nixpkgs_2",
"nur": "nur", "nur": "nur",
"treefmt-nix": "treefmt-nix", "treefmt-nix": "treefmt-nix_2",
"utils": "utils" "utils": "utils"
} }
}, },
@ -353,6 +397,27 @@
} }
}, },
"treefmt-nix": { "treefmt-nix": {
"inputs": {
"nixpkgs": [
"nix-direnv",
"nixpkgs"
]
},
"locked": {
"lastModified": 1768158989,
"narHash": "sha256-67vyT1+xClLldnumAzCTBvU0jLZ1YBcf4vANRWP3+Ak=",
"owner": "numtide",
"repo": "treefmt-nix",
"rev": "e96d59dff5c0d7fddb9d113ba108f03c3ef99eca",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "treefmt-nix",
"type": "github"
}
},
"treefmt-nix_2": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
"nixpkgs" "nixpkgs"

View file

@ -29,6 +29,11 @@
flake = false; flake = false;
url = "git+ssh://gitea@git.orlives.de:2342/schmittlauch/home-manager_secrets.git"; url = "git+ssh://gitea@git.orlives.de:2342/schmittlauch/home-manager_secrets.git";
}; };
nix-direnv = {
url = "github:nix-community/nix-direnv";
inputs.nixpkgs.follows = "nixpkgs";
};
}; };
outputs = outputs =

View file

@ -19,7 +19,11 @@
programs.bat.enable = true; programs.bat.enable = true;
programs.direnv = { programs.direnv = {
enable = true; enable = true;
nix-direnv.enable = true; nix-direnv = {
enable = true;
# use a more recent nix-direnv to get the _nix_refresh_gcroots integration
package = inputs.nix-direnv.packages."${pkgs.stdenv.hostPlatform.system}".nix-direnv;
};
enableZshIntegration = true; enableZshIntegration = true;
}; };

View file

@ -1,33 +1,31 @@
[ [
(self: super: rec { (self: super: {
myVim = myVim = super.neovim.override {
with super; configure = {
neovim.override { packages.myVimPackage = with self.pkgs.vimPlugins; {
configure = { # loaded on start
packages.myVimPackage = with pkgs.vimPlugins; { start = [
# loaded on start ale
start = [ base16-vim
ale LanguageClient-neovim
base16-vim ctrlp
LanguageClient-neovim direnv-vim
ctrlp fugitive
direnv-vim haskell-vim
fugitive jedi-vim
haskell-vim nerdtree
jedi-vim nerdtree-git-plugin
nerdtree supertab
nerdtree-git-plugin vim-dirdiff
supertab vim-pandoc
vim-dirdiff vim-pandoc-syntax
vim-pandoc vim-nix
vim-pandoc-syntax vim-jinja
vim-nix which-key-nvim
vim-jinja ];
which-key-nvim
];
};
customRC = builtins.readFile ./vimrc;
}; };
customRC = builtins.readFile ./vimrc;
}; };
};
}) })
] ]