dotfiles/modules/gaming/steam.nix

16 lines
292 B
Nix
Raw Normal View History

2022-04-26 23:59:55 +00:00
{ config, pkgs, lib, ... }:
2022-04-26 01:54:53 +00:00
2022-04-26 23:59:55 +00:00
with lib;
let cfg = config.modules.gaming.steam;
2022-04-26 01:54:53 +00:00
2022-04-26 23:59:55 +00:00
in {
2022-04-27 13:23:26 +00:00
options.modules.gaming.steam = { enable = mkEnableOption "Steam"; };
2022-04-26 23:59:55 +00:00
config = mkIf cfg.enable {
2022-04-26 01:54:53 +00:00
hardware.steam-hardware.enable = true;
environment.systemPackages = with pkgs; [ steam ];
};
}