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

25 lines
610 B
Nix
Raw Normal View History

2025-02-25 02:14:16 -05:00
{ config, lib, pkgs, unstable, ... }:
2025-01-11 14:07:19 -05:00
{
options.nixpkgs.allowUnfreePackages = lib.mkOption {
type = with lib.types; listOf str;
2025-02-25 02:14:16 -05:00
};
config = {
nix = {
package = lib.mkForce pkgs.nix;
settings.experimental-features = [
"nix-command"
"flakes"
];
registry.unstable.flake = unstable;
};
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-01-22 13:18:35 -05:00
};
2025-01-11 14:07:19 -05:00
}