treewide: add and use option nixowos.allowAddingPackages

This commit is contained in:
Elec3137 2026-03-23 21:17:09 -07:00
commit b91af8f6f7
5 changed files with 20 additions and 11 deletions

View file

@ -25,9 +25,11 @@ in
# source: https://nix.dev/manual/nix/2.26/command-ref/new-cli/nix3-store-optimise
nix.settings.auto-optimise-store = true;
environment.systemPackages = with pkgs; [
nixd
nixfmt
];
environment.systemPackages =
with pkgs;
lib.mkIf config.nixowos.allowAddingPackages [
nixd
nixfmt
];
};
}