hosts: ship a copy of this repo in /etc/nix/source

This commit is contained in:
Colin 2023-11-08 23:56:31 +00:00
parent 5202c572fb
commit 539ee010ab
1 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,4 @@
{ pkgs, ... }:
{ pkgs, sane-lib, ... }:
{
# allow `nix-shell` (and probably nix-index?) to locate our patched and custom packages
@ -10,4 +10,8 @@
# to avoid switching so much during development
"nixpkgs-overlays=/home/colin/dev/nixos/hosts/common/nix-path/overlay"
];
# ensure new deployments have a source of this repo with which they can bootstrap.
# could get away with only shipping this on the `imgs.FOO` or `nixosSystems.rescue` targets, if we *really* want to save space/deploys.
sane.fs."/etc/nix/source" = sane-lib.fs.wantedSymlinkTo ../../..;
}