nixos-config/modules/system/settings/nix/default.nix

26 lines
587 B
Nix
Raw Normal View History

{ config, lib, pkgs, unstable, ... }:
{
imports = [ ./gc ];
2024-12-01 20:10:31 -05:00
options.nixpkgs.allowUnfreePackages = lib.mkOption {
type = with lib.types; listOf str;
};
2025-02-25 02:14:16 -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
};
}