Add hyprland

Add unfree
This commit is contained in:
muon 2024-06-06 20:16:24 +00:00
parent d676358f1a
commit 31ffdc94e8
18 changed files with 185 additions and 44 deletions

View file

@ -0,0 +1,19 @@
{ pkgs, lib, config, ... }:
let
cfg = config.mods.unfree;
mkPackages = mod:
if cfg.${mod}.enable then
cfg.${mod}.packages else [];
in {
imports = [
./steam.nix
./nvidia.nix
];
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) (
(mkPackages "steam") ++
(mkPackages "nvidia")
);
}