mirror of
https://github.com/nmasur/dotfiles
synced 2024-12-26 07:04:52 +00:00
17 lines
331 B
Nix
17 lines
331 B
Nix
{ config, pkgs, lib, ... }:
|
|
|
|
with lib;
|
|
let cfg = config.modules.gaming.steam;
|
|
|
|
in {
|
|
|
|
options.modules.gaming.steam = { enable = mkEnableOption "Steam"; };
|
|
|
|
config = mkIf cfg.enable {
|
|
hardware.steam-hardware.enable = true;
|
|
nixpkgs.config.allowUnfree = true;
|
|
environment.systemPackages = with pkgs; [ steam ];
|
|
};
|
|
|
|
}
|