Fix unfree predicate by stealing unfreepackages from Majiir
This commit is contained in:
parent
02bc93f444
commit
a4ecef2517
8 changed files with 42 additions and 28 deletions
|
@ -1,7 +1,7 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./launchers
|
||||
./emulators
|
||||
./launchers
|
||||
];
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
steam-run
|
||||
];
|
||||
|
||||
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
|
||||
nixpkgs.allowUnfreePackages = [
|
||||
"steam"
|
||||
"steam-unwrapped"
|
||||
];
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
{ lib, pkgs, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
dua
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue