initial setup

This commit is contained in:
2025-05-29 13:53:53 +02:00
commit 9f1f69cf9b
112 changed files with 3344 additions and 0 deletions

View 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";
};
};
}

View 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
];
};
}