| 31 Oct 2025 |
Grimmauld (any/all) | Do we use buildShellApplication outside systemd.enableStrictShellChecks = true in the default closure? | 22:27:57 |
Grimmauld (any/all) | actually wait no that is false by default huh | 22:28:25 |
emily | --set PRE_SWITCH_CHECK ${lib.escapeShellArg config.system.preSwitchChecksScript} \
| 22:29:56 |
emily | I think we actually just need to conditionalize this on config.system.preSwitchChecks… | 22:30:19 |
emily | the same way it is in nixos/modules/system/activation/top-level.nix | 22:30:24 |
emily | pretty funny if this pulled GHC into the build closure of every switchable system and nobody noticed, though that sounds too good to be true | 22:31:01 |
Grimmauld (any/all) | no, that sounds about reasonable | 22:31:18 |
raboof | In reply to @emilazy:matrix.org how much would that shrink the minimal ISO? Afaics not, it's just a build-time dependency right? | 22:31:24 |
emily | right | 22:31:30 |
emily | still seems good to avoid. | 22:31:46 |
emily | it's a one-liner fix | 22:31:52 |
raboof | Yeah. I thought it was used in more places though, but afk now | 22:33:04 |
Grimmauld (any/all) | looking at my musl experiments, it is literally JUST pre-switch-checks depending on ghc | 22:33:42 |
Grimmauld (any/all) | https://termbin.com/hala
nix why-depends --derivation --all .#nixosConfigurations.grimm-musl.config.system.build.toplevel .#nixosConfigurations.grimm-musl.pkgs.ghc | 22:34:41 |
Grimmauld (any/all) | i didn't check whether there might be more ghc on the way to qemu, but toplevel is what counts | 22:35:25 |
Grimmauld (any/all) | this is minimal+perlless+musl+some bashless, but it is a graphical switchable system | 22:35:58 |
Grimmauld (any/all) | * this is minimal+perlless+musl+some bash reduction, but it is a graphical switchable system | 22:36:11 |
emily | what we really want is a passthru.tests for NixOS configs | 22:37:38 |
emily | that can do all the ShellCheck stuff | 22:37:46 |
Grimmauld (any/all) | and udev checks too! | 22:38:32 |
| ElvishJerricco joined the room. | 22:46:56 |
ElvishJerricco | a default nixos config, including the ISO, already depends on ShellCheck because of nixos-firewall-tool, FYI | 22:58:59 |
Grimmauld (any/all) | not minimal tho | 22:59:46 |
ElvishJerricco | yes minimal? | 22:59:53 |
ElvishJerricco | I just checked | 22:59:58 |
Grimmauld (any/all) | HUH? | 23:00:11 |
ElvishJerricco | like shellcheck isn't in the runtime closure | 23:00:16 |
ElvishJerricco | but it's a build dep | 23:00:19 |
ElvishJerricco | because of nixos-firewall-tool, which is included in the ISO by default | 23:00:29 |
ElvishJerricco | and because of the switchChecks thing | 23:00:36 |