Added steam config

This commit is contained in:
Alejandro Angulo 2023-03-19 18:10:43 -07:00
parent a78a60abf8
commit fbbd42860e
Signed by: alejandro-angulo
GPG key ID: 75579581C74554B6
3 changed files with 56 additions and 14 deletions

View file

@ -0,0 +1,22 @@
{
options,
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.aa.apps.steam;
in {
options.aa.apps.steam = with types; {
enable = mkEnableOption "steam";
};
config = mkIf cfg.enable {
programs.steam = {
enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
};
};
}

View file

@ -0,0 +1,20 @@
{
options,
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.aa.suites.gaming;
in {
options.aa.suites.gaming = with lib.types; {
enable = mkEnableOption "gaming configuration";
};
config = mkIf cfg.enable {
aa.apps = {
steam.enable = true;
};
};
}

View file

@ -13,6 +13,20 @@
./vpn.nix ./vpn.nix
]; ];
aa = {
nix.enable = true;
suites.desktop.enable = true;
suites.gaming.enable = true;
tools.git.enable = true;
tools.zsh.enable = true;
tools.exa.enable = true;
apps.neovim.enable = true;
apps.tmux.enable = true;
};
boot.binfmt.emulatedSystems = ["aarch64-linux" "armv6l-linux"]; boot.binfmt.emulatedSystems = ["aarch64-linux" "armv6l-linux"];
hardware.opengl = { hardware.opengl = {
@ -23,14 +37,6 @@
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
nix = {
# Make ready for nix flakes
package = pkgs.nixVersions.stable;
extraOptions = ''
experimental-features = nix-command flakes
'';
};
networking.hostName = "gospel"; # Define your hostname. networking.hostName = "gospel"; # Define your hostname.
# Pick only one of the below networking options. # Pick only one of the below networking options.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
@ -89,12 +95,6 @@
extraPackages = with pkgs; [swaylock]; extraPackages = with pkgs; [swaylock];
}; };
programs.steam = {
enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
};
fonts.fonts = with pkgs; [ fonts.fonts = with pkgs; [
(nerdfonts.override {fonts = ["Hack"];}) (nerdfonts.override {fonts = ["Hack"];})
]; ];