dotfiles/modules/gaming/steam.nix

17 lines
331 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;
2022-04-29 02:43:50 +00:00
nixpkgs.config.allowUnfree = true;
2022-04-26 01:54:53 +00:00
environment.systemPackages = with pkgs; [ steam ];
};
}