refactor!: import modules recursively

This commit is contained in:
Moritz Böhme 2023-05-11 17:33:14 +02:00
parent f9fd542206
commit 9567cce5fa
No known key found for this signature in database
GPG key ID: 970C6E89EB0547A9
35 changed files with 227 additions and 178 deletions

View file

@ -1,11 +1,23 @@
{ pkgs
{ lib
, config
, pkgs
, ...
}: {
programs.steam.enable = true;
environment.systemPackages = with pkgs; [
lutris
legendary-gl
heroic
mangohud
];
}:
with lib;
let
cfg = config.my.profiles.gaming;
in
{
options.my.profiles.gaming.enable = mkEnableOption "Enable gaming profile";
config = mkIf cfg.enable {
programs.steam.enable = true;
environment.systemPackages = with pkgs; [
lutris
legendary-gl
heroic
mangohud
];
};
}