initial setup
This commit is contained in:
24
root/gaming/desktop/lact/default.nix
Normal file
24
root/gaming/desktop/lact/default.nix
Normal file
@ -0,0 +1,24 @@
|
||||
# Use LACT for GPU overclocking
|
||||
{ pkgs,... }:
|
||||
{
|
||||
environment.systemPackages =
|
||||
(with pkgs; [
|
||||
lact
|
||||
]);
|
||||
|
||||
# Enable Modprobe
|
||||
boot.extraModprobeConfig = ''
|
||||
options amdgpu ppfeaturemask=0xFFF7FFFF
|
||||
'';
|
||||
|
||||
# Enable Systemd Service
|
||||
systemd.services.lact = {
|
||||
enable = true;
|
||||
description = "AMDGPU Control Daemon";
|
||||
after = ["multi-user.target"];
|
||||
wantedBy = ["multi-user.target"];
|
||||
serviceConfig = {
|
||||
ExecStart = "${pkgs.lact}/bin/lact daemon";
|
||||
};
|
||||
};
|
||||
}
|
48
root/gaming/desktop/steam/default.nix
Normal file
48
root/gaming/desktop/steam/default.nix
Normal file
@ -0,0 +1,48 @@
|
||||
{ pkgs, ... }:
|
||||
# Scripts for SteamOS session
|
||||
let
|
||||
jupiter-biosupdate = pkgs.writeShellScriptBin "jupiter-biosupdate" ''
|
||||
exit 0;
|
||||
'';
|
||||
|
||||
steamos-update = pkgs.writeShellScriptBin "steamos-update" ''
|
||||
exit 7;
|
||||
'';
|
||||
|
||||
steamos-select-branch = pkgs.writeShellScriptBin "steamos-select-branch" ''
|
||||
echo "Not applicable for this OS"
|
||||
'';
|
||||
|
||||
steamos-session-select = pkgs.writeShellScriptBin "steamos-session-select" ''
|
||||
steam -shutdown
|
||||
'';
|
||||
in
|
||||
{
|
||||
environment.systemPackages = [
|
||||
jupiter-biosupdate
|
||||
steamos-update
|
||||
steamos-select-branch
|
||||
steamos-session-select
|
||||
];
|
||||
hardware.steam-hardware.enable = true;
|
||||
programs.steam = {
|
||||
enable = true;
|
||||
extest.enable = true;
|
||||
gamescopeSession.enable = true;
|
||||
gamescopeSession.args = [
|
||||
"--mangoapp"
|
||||
];
|
||||
gamescopeSession.steamArgs = [
|
||||
"-steamdeck"
|
||||
"-steamos3"
|
||||
];
|
||||
extraCompatPackages = with pkgs; [
|
||||
proton-ge-bin
|
||||
];
|
||||
extraPackages = with pkgs; [
|
||||
gamescope
|
||||
mangohud
|
||||
vulkan-hdr-layer-kwin6
|
||||
];
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user