Skip to content

Commit

Permalink
system update :3
Browse files Browse the repository at this point in the history
  • Loading branch information
Octelly committed May 2, 2024
1 parent 5a208b2 commit 7ce8da1
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 59 deletions.
84 changes: 42 additions & 42 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions hosts/ocean-t460/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,15 @@
};
};
networking.firewall.allowedTCPPorts = [ 25565 ];
nix.buildMachines = [{
hostName = "192.168.1.137";
system = "x86_64-linux";
}];
nix.distributedBuilds = true;

nix.extraOptions = ''
builders-use-substitutes = true
'';

#services.desktopManager.cosmic.enable = true;
}
39 changes: 22 additions & 17 deletions modules/desktop/gaming/steam.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,29 @@ with builtins;
with lib;
let cfg = config.modules.desktop.gaming.steam;
in {
options.modules.desktop.gaming.steam = {
enable = mkEnableOption "Steam";
};
options.modules.desktop.gaming.steam = {
enable = mkEnableOption "Steam";
};

config = mkIf cfg.enable {
programs.steam = {
enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
};
config = mkIf cfg.enable {
programs.steam = {
enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
gamescopeSession.enable = true;
};

environment = {
sessionVariables.STEAM_EXTRA_COMPAT_TOOLS_PATHS = "\${HOME}/.steam/root/compatibilitytools.d";
programs.gamemode = {
enable = true;
enableRenice = true;
};

systemPackages = with pkgs; [
gamemode
protonup
];
};
};
environment = {
sessionVariables.STEAM_EXTRA_COMPAT_TOOLS_PATHS = "\${HOME}/.steam/root/compatibilitytools.d";

systemPackages = with pkgs; [
protonup
];
};
};
}

0 comments on commit 7ce8da1

Please sign in to comment.