refactor
This commit is contained in:
20
modules/home/gaming/mangohud/default.nix
Normal file
20
modules/home/gaming/mangohud/default.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.home.gaming.mangohud;
|
||||
in {
|
||||
options = {
|
||||
home.gaming.mangohud.enable = mkEnableOption "Enables mangohud";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
programs.mangohud = {
|
||||
enable = true;
|
||||
settings = {
|
||||
full = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user