🚀 make gaming module
This commit is contained in:
parent
82df340d59
commit
e972d70a1b
3 changed files with 28 additions and 8 deletions
|
@ -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
19
modules/gaming.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
|
@ -1,6 +0,0 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.steam.enable = true;
|
||||
home-manager.users.moritz.home.packages = with pkgs; [ lutris legendary-gl ];
|
||||
}
|
Loading…
Reference in a new issue