Files
nix-config/modules/graphical/gamemode.nix
2024-04-17 16:33:12 +02:00

21 lines
450 B
Nix

{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.custom.graphical.gamemode;
in
{
options.custom.graphical.gamemode = {
enable = mkEnableOption "Enables gamemode";
};
config = mkIf cfg.enable {
programs.gamemode = {
enable = true;
settings.custom = {
start = "${pkgs.libnotify}/bin/notify-send 'GameMode started'";
end = "${pkgs.libnotify}/bin/notify-send 'GameMode ended'";
};
};
};
}