mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
Add hyprland
Add unfree
This commit is contained in:
parent
d676358f1a
commit
31ffdc94e8
18 changed files with 185 additions and 44 deletions
19
modules/nixos/unfree/default.nix
Normal file
19
modules/nixos/unfree/default.nix
Normal 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")
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue