21 lines
444 B
Nix
21 lines
444 B
Nix
{ config, lib, pkgs, ... }:
|
|
with lib;
|
|
let
|
|
cfg = config.kop.graphical.gamemode;
|
|
in
|
|
{
|
|
options.kop.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'";
|
|
};
|
|
};
|
|
};
|
|
}
|