add gaming
This commit is contained in:
20
modules/desktop/gaming/mangohud/default.nix
Normal file
20
modules/desktop/gaming/mangohud/default.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
cfg = config.gaming.mangohud;
|
||||
in {
|
||||
options.gaming.mangohud = {
|
||||
enable = lib.mkEnableOption "enable lutris";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
# preformance overlay
|
||||
# requires setting launch option `mangohud %command%`
|
||||
environment.systemPackages = with pkgs; [
|
||||
mangohud
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user