🚀 make gaming module
parent
82df340d59
commit
e972d70a1b
|
@ -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 = {
|
||||
|
|
|
@ -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 New Issue