mirror of
https://github.com/nmasur/dotfiles
synced 2025-07-05 20:50:15 +00:00
more refactoring with default.nix
This commit is contained in:
@ -1,5 +1,7 @@
|
||||
{ config, ... }: {
|
||||
|
||||
imports = [ ./leagueoflegends.nix ./lutris.nix ./steam.nix ];
|
||||
|
||||
config = {
|
||||
hardware.opengl = {
|
||||
enable = true;
|
@ -1,9 +1,15 @@
|
||||
{ config, pkgs, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
imports = [ ./common.nix ./lutris.nix ];
|
||||
with lib;
|
||||
let cfg = config.modules.gaming.leagueoflegends;
|
||||
|
||||
config = {
|
||||
in {
|
||||
|
||||
options.modules.gaming.leagueoflegends = {
|
||||
enable = mkEnableOption "leagueoflegends";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
# League of Legends anti-cheat
|
||||
boot.kernel.sysctl = { "abi.vsyscall32" = 0; };
|
||||
|
@ -1,9 +1,14 @@
|
||||
{ config, pkgs, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
with lib;
|
||||
let cfg = config.modules.gaming.lutris;
|
||||
|
||||
imports = [ ./common.nix ];
|
||||
in {
|
||||
|
||||
config = { environment.systemPackages = with pkgs; [ lutris amdvlk wine ]; };
|
||||
options.modules.gaming.lutris = { enable = mkEnableOption "lutris"; };
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [ lutris amdvlk wine ];
|
||||
};
|
||||
|
||||
}
|
||||
|
@ -1,8 +1,13 @@
|
||||
{ config, pkgs, ... }: {
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
imports = [ ./common.nix ];
|
||||
with lib;
|
||||
let cfg = config.modules.gaming.steam;
|
||||
|
||||
config = {
|
||||
in {
|
||||
|
||||
options.modules.gaming.steam = { enable = mkEnableOption "steam"; };
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
hardware.steam-hardware.enable = true;
|
||||
environment.systemPackages = with pkgs; [ steam ];
|
||||
};
|
||||
|
Reference in New Issue
Block a user