🚀 make gaming module

This commit is contained in:
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, ... }: { lib, pkgs, ... }:
{ {
imports = imports = [
[ ./cachix.nix ./cli ./desktop ./editors ./services ./security.nix ]; ./cachix.nix
./cli
./desktop
./editors
./gaming.nix
./security.nix
./services
];
# USERS # USERS
users.users.moritz = { 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 ];
}