🚀 make gaming module

nixos
Moritz Böhme 2022-03-23 12:37:32 +01:00
parent 82df340d59
commit e972d70a1b
No known key found for this signature in database
GPG Key ID: 213820E2795F5CF5
3 changed files with 28 additions and 8 deletions

View File

@ -1,8 +1,15 @@
{ lib, pkgs, ... }:
{
imports =
[ ./cachix.nix ./cli ./desktop ./editors ./services ./security.nix ];
imports = [
./cachix.nix
./cli
./desktop
./editors
./gaming.nix
./security.nix
./services
];
# USERS
users.users.moritz = {

19
modules/gaming.nix Normal file
View File

@ -0,0 +1,19 @@
{ config, lib, pkgs, ... }:
with lib;
let cfg = config.modules.gaming;
in {
options.modules.gaming = mkOption {
default = false;
type = types.bool;
example = true;
};
config = mkIf cfg {
programs.steam.enable = true;
home-manager.users.moritz.home.packages = with pkgs; [
lutris
legendary-gl
];
};
}

View File

@ -1,6 +0,0 @@
{ config, lib, pkgs, ... }:
{
programs.steam.enable = true;
home-manager.users.moritz.home.packages = with pkgs; [ lutris legendary-gl ];
}