mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
Fix pkgs
This commit is contained in:
parent
7a0ea882c5
commit
7bf3d8fd7c
5 changed files with 15 additions and 44 deletions
|
|
@ -1,21 +1,12 @@
|
|||
{ pkgs, lib, config, ... }:
|
||||
{ lib, config, ... }:
|
||||
let
|
||||
cfg = config.mods.unfree;
|
||||
mkPackages = mod:
|
||||
if cfg.${mod}.enable then
|
||||
cfg.${mod}.packages else [];
|
||||
mkPackages = mod: if cfg.${mod}.enable then cfg.${mod}.packages else [ ];
|
||||
|
||||
in {
|
||||
imports = [
|
||||
./steam.nix
|
||||
./nvidia.nix
|
||||
./minecraft.nix
|
||||
];
|
||||
imports = [ ./steam.nix ./nvidia.nix ./minecraft.nix ];
|
||||
|
||||
nixpkgs.config.allowUnfreePredicate = pkg:
|
||||
builtins.elem (lib.getName pkg) (
|
||||
(mkPackages "steam") ++
|
||||
(mkPackages "minecraft") ++
|
||||
(mkPackages "nvidia")
|
||||
);
|
||||
builtins.elem (lib.getName pkg)
|
||||
((mkPackages "steam") ++ (mkPackages "minecraft") ++ (mkPackages "nvidia"));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue