Restructure system-modules and bump flake.lock

- Consolidate enable flags into a `packages` attribute in all host
system-modules.nix files. - Rename package option paths to
`config.packages.<name>.enable` in modules/core/packages/packages.nix. -
Update locked revisions (lastModified, narHash, rev) for firefox‑addons
and stylix in flake.lock.
This commit is contained in:
2025-11-30 14:05:19 +01:00
parent 8d3fd7dbe2
commit be74b351e8
5 changed files with 164 additions and 206 deletions

View File

@@ -7,9 +7,9 @@
...
}: let
mkPackage = name: pkgsOrList: {
options.${name}.enable = lib.mkEnableOption name;
options.packages.${name}.enable = lib.mkEnableOption name;
config.environment.systemPackages =
lib.mkIf config.${name}.enable
lib.mkIf config.packages.${name}.enable
(lib.toList pkgsOrList);
};