refactor(work): set up 'packages.local.nix' approach

This commit is contained in:
2025-12-03 15:26:39 +01:00
parent fdbe4366e1
commit 1c844adf91
2 changed files with 20 additions and 3 deletions

2
.gitignore vendored
View File

@@ -4,3 +4,5 @@ result
result-* result-*
nixos-efi-vars.fd nixos-efi-vars.fd
home/hosts/work/packages.local.nix

View File

@@ -1,4 +1,19 @@
{ pkgs, config, ... }: {
inputs,
config,
pkgs,
...
}:
with pkgs; let
[ ] localPackages =
if builtins.pathExists ./packages.local.nix then
import ./packages.local.nix { inherit inputs config pkgs; }
else
[ ];
in
(with pkgs; [
inputs.nvim.packages.x86_64-linux.nvim
])
++ localPackages