-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move the gaming module from home-manager to nixos and flesh it out with additional installs, such as steam.
- Loading branch information
1 parent
d560f74
commit c51b6b1
Showing
5 changed files
with
37 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
{ ... }: { | ||
custom = { | ||
gaming = true; | ||
editors.vscode = true; | ||
editors.idea = true; | ||
}; | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ config, lib, pkgs, ... }: | ||
let | ||
cfg = config.custom.gaming; | ||
in | ||
{ | ||
options.custom.gaming.enable = lib.mkEnableOption "gaming"; | ||
|
||
config = lib.mkIf cfg.enable { | ||
programs.steam = { | ||
enable = true; | ||
protontricks.enable = true; | ||
remotePlay.openFirewall = true; | ||
localNetworkGameTransfers.openFirewall = true; | ||
extraCompatPackages = with pkgs; [ | ||
proton-ge-bin | ||
]; | ||
}; | ||
|
||
programs.nix-ld = { | ||
enable = true; | ||
libraries = pkgs.steam-run.fhsenv.args.multiPkgs pkgs; | ||
}; | ||
|
||
environment.systemPackages = with pkgs; [ | ||
heroic | ||
prismlauncher | ||
steam-run | ||
]; | ||
|
||
nixpkgs.config.allowUnfreePredicate = pkg: lib.elem (lib.getName pkg) [ | ||
"steam" | ||
"steam-original" | ||
"steam-run" | ||
]; | ||
}; | ||
} |