From 539ee010ab6d5ef52d11d7858aebd017d228698d Mon Sep 17 00:00:00 2001 From: Colin Date: Wed, 8 Nov 2023 23:56:31 +0000 Subject: [PATCH] hosts: ship a copy of this repo in /etc/nix/source --- hosts/common/nix-path/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hosts/common/nix-path/default.nix b/hosts/common/nix-path/default.nix index 0291fb6d..4279401a 100644 --- a/hosts/common/nix-path/default.nix +++ b/hosts/common/nix-path/default.nix @@ -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 ../../..; }