big module system implementation

This commit is contained in:
cnst
2024-08-17 18:28:42 +02:00
parent 505afa84d0
commit 7525ab34c1
155 changed files with 2402 additions and 2029 deletions

View File

@@ -0,0 +1,25 @@
{
pkgs,
config,
lib,
...
}: let
inherit (lib) mkIf mkEnableOption;
cfg = config.modules.gaming.lutris;
in {
options = {
modules.gaming.lutris.enable = mkEnableOption "Enables lutris";
};
config = mkIf cfg.enable {
home.packages = [
(pkgs.lutris.override {
extraPkgs = p: [
p.wineWowPackages.staging
p.pixman
p.libjpeg
p.gnome.zenity
];
})
];
};
}

View File

@@ -0,0 +1,20 @@
{
config,
lib,
...
}: let
inherit (lib) mkIf mkEnableOption;
cfg = config.modules.gaming.mangohud;
in {
options = {
modules.gaming.mangohud.enable = mkEnableOption "Enables mangohud";
};
config = mkIf cfg.enable {
programs.mangohud = {
enable = true;
settings = {
full = true;
};
};
};
}