Fix unfree predicate by stealing unfreepackages from Majiir

This commit is contained in:
Jimbo 2025-02-25 06:23:59 -05:00
parent 02bc93f444
commit a4ecef2517
8 changed files with 42 additions and 28 deletions

View file

@ -1,7 +1,7 @@
{ ... }:
{
imports = [
./launchers
./emulators
./launchers
];
}

View file

@ -7,7 +7,7 @@
steam-run
];
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
nixpkgs.allowUnfreePackages = [
"steam"
"steam-unwrapped"
];

View file

@ -1,4 +1,4 @@
{ pkgs, ... }:
{ lib, pkgs, ... }:
{
home.packages = with pkgs; [
dua

View file

@ -1,16 +1,24 @@
{ config, lib, pkgs, unstable, ... }:
{
nix = {
package = lib.mkForce pkgs.nix;
settings.experimental-features = [
"nix-command"
"flakes"
];
registry.unstable.flake = unstable;
options.nixpkgs.allowUnfreePackages = lib.mkOption {
type = with lib.types; listOf str;
};
_module.args.pkgsUnstable = import unstable {
inherit (pkgs.stdenv.hostPlatform) system;
inherit (config.nixpkgs) config;
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;
};
};
}