2025-02-25 06:23:59 -05:00
|
|
|
{ config, lib, pkgs, unstable, ... }:
|
2024-11-04 22:41:38 -05:00
|
|
|
{
|
2024-12-29 09:52:56 -05:00
|
|
|
imports = [ ./gc ];
|
2024-12-01 20:10:31 -05:00
|
|
|
|
2025-02-25 06:23:59 -05:00
|
|
|
options.nixpkgs.allowUnfreePackages = lib.mkOption {
|
|
|
|
type = with lib.types; listOf str;
|
2024-11-04 22:41:38 -05:00
|
|
|
};
|
2025-02-25 02:14:16 -05:00
|
|
|
|
2025-02-25 06:23:59 -05:00
|
|
|
config = {
|
|
|
|
nix.settings = {
|
|
|
|
experimental-features = [
|
|
|
|
"nix-command"
|
|
|
|
"flakes"
|
|
|
|
];
|
|
|
|
auto-optimise-store = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) config.nixpkgs.allowUnfreePackages;
|
|
|
|
|
|
|
|
_module.args.pkgsUnstable = import unstable {
|
|
|
|
inherit (pkgs.stdenv.hostPlatform) system;
|
|
|
|
inherit (config.nixpkgs) config;
|
|
|
|
};
|
2025-02-25 02:14:16 -05:00
|
|
|
};
|
2024-11-04 22:41:38 -05:00
|
|
|
}
|