refactor(work): set up 'packages.local.nix' approach
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -4,3 +4,5 @@ result
|
|||||||
result-*
|
result-*
|
||||||
|
|
||||||
nixos-efi-vars.fd
|
nixos-efi-vars.fd
|
||||||
|
|
||||||
|
home/hosts/work/packages.local.nix
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user