Add gamin module in both nixos and home-manager
This commit is contained in:
parent
2b7d1ec452
commit
f9062e9d15
7 changed files with 71 additions and 11 deletions
|
@ -1,6 +1,7 @@
|
|||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./gaming/lutris
|
||||
./video/kdenlive
|
||||
./web/qutebrowser/default.nix
|
||||
];
|
||||
|
|
29
modules/home-manager/gaming/lutris/default.nix
Normal file
29
modules/home-manager/gaming/lutris/default.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{ lib, config, pkgs, ... }:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.gaming.lutris;
|
||||
in
|
||||
{
|
||||
options.modules.gaming.lutris = {
|
||||
enable = mkEnableOption "enable Lutris Gaming preservation platform";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
home.packages = with pkgs; [
|
||||
( lutris.override {
|
||||
extraLibraries = pkgs: [
|
||||
wine
|
||||
xorg.libXcursor
|
||||
xorg.libXi
|
||||
xorg.libXinerama
|
||||
xorg.libXScrnSaver
|
||||
libpng
|
||||
libpulseaudio
|
||||
libvorbis
|
||||
stdenv.cc.cc.lib
|
||||
libkrb5
|
||||
keyutils
|
||||
];
|
||||
})
|
||||
];
|
||||
};
|
||||
}
|
6
modules/nixos/default.nix
Normal file
6
modules/nixos/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
_:
|
||||
{
|
||||
imports = [
|
||||
./gaming/steam
|
||||
];
|
||||
}
|
28
modules/nixos/gaming/steam/default.nix
Normal file
28
modules/nixos/gaming/steam/default.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{ lib, config, ... }:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.gaming.steam;
|
||||
in
|
||||
{
|
||||
options.modules.gaming.steam = {
|
||||
enable = mkEnableOption "Enable Steam Platform";
|
||||
|
||||
gamescope = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = "enable gamescope session (default false)";
|
||||
};
|
||||
gamemode = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = "enable Feral Gamemode (default false)";
|
||||
};
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
programs.gamemode.enable = cfg.gamemode;
|
||||
programs.gamescope.enable = cfg.gamescope;
|
||||
programs.steam = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue