thanks to both of you. for my edification I want to try both routes that jtojnar suggested. Starting with the nix-build
based off a local edit to a clone of the pkgs repo…
I’m realizing that, regardless of the strategy I pick, I should first establish a baseline for myself: reproduce the error I’m trying to fix. So I did the following, from the freshly cloned packages repo, I’m trying to trigger installPhase
code to run:
-
git checkout 22.05
(as that is what’s in my system’s file’ssystem.stateVersion
value) - did not make my planned edits yet
- from the root of the git repo, ran
nix-build --expr 'let pkgs = import ./. {}; in pkgs.dictDBCollector { dictlist = []; }'
- now try to reproduce the error by getting
installPhase
to execute…- Reading the
nixos-rebuild
manpage I thinkbuild-vm
would be nice or eventest
(so I don’t add another boot entry for this tinkering). I’ve tried both:nixos-rebuild --show-trace build-vm -I nixpkgs="$PWD"
nixos-rebuild --show-trace test -I nixpkgs="$PWD"
- both of those^ commands result all sorts of lines of my
/etc/nixos/*.nix
files having issues. Issues I don’t see day to day when I runnixos-rebuild switch
on a regular basis (just managing personal package selections). here’s a snippet of the error:
I can comment that out just to get this test font package’s config to move the test along, but then some other mundane thing causes a similar error:error: The option `fonts.enableDefaultPackages' does not exist. Definition values: - In `/etc/nixos/configuration.nix': true
virtualisation.vmVariant.users.users.qsu.linger' does not exist
. - Reading the
I’m guessing I’m just misunderstanding how the repo is relating to my real system, or I’m misunderstanding the suggested approach?