Added steam config
This commit is contained in:
parent
a78a60abf8
commit
fbbd42860e
22
modules/apps/steam/default.nix
Normal file
22
modules/apps/steam/default.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
20
modules/suites/gaming/default.nix
Normal file
20
modules/suites/gaming/default.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
|
@ -13,6 +13,20 @@
|
|||
./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"];
|
||||
|
||||
hardware.opengl = {
|
||||
|
@ -23,14 +37,6 @@
|
|||
|
||||
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.
|
||||
# Pick only one of the below networking options.
|
||||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||||
|
@ -89,12 +95,6 @@
|
|||
extraPackages = with pkgs; [swaylock];
|
||||
};
|
||||
|
||||
programs.steam = {
|
||||
enable = true;
|
||||
remotePlay.openFirewall = true;
|
||||
dedicatedServer.openFirewall = true;
|
||||
};
|
||||
|
||||
fonts.fonts = with pkgs; [
|
||||
(nerdfonts.override {fonts = ["Hack"];})
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue