1
0
Fork 0
mirror of https://git.sr.ht/~neverness/ultima synced 2025-05-13 14:35:16 +00:00

trys for steam

This commit is contained in:
nixzoid 2025-04-15 19:08:24 +09:00
parent 04d9ab9520
commit d39a84ba99
5 changed files with 83 additions and 35 deletions
flake.lockflake.nix
machines/jetpure/home
modules/nixos
misc/variables
programs/steam

58
flake.lock generated
View file

@ -272,6 +272,24 @@
}
},
"flake-utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1731533236,
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"flake-utils_2": {
"inputs": {
"systems": [
"stylix",
@ -292,9 +310,9 @@
"type": "github"
}
},
"flake-utils_2": {
"flake-utils_3": {
"inputs": {
"systems": "systems_4"
"systems": "systems_5"
},
"locked": {
"lastModified": 1731533236,
@ -565,7 +583,7 @@
"nixpkgs": [
"nixpkgs"
],
"systems": "systems",
"systems": "systems_2",
"treefmt-nix": "treefmt-nix"
},
"locked": {
@ -696,6 +714,7 @@
"cosmic": "cosmic",
"cursors": "cursors",
"disko": "disko",
"flake-utils": "flake-utils",
"flatpak": "flatpak",
"gaming": "gaming",
"hardware": "hardware",
@ -738,7 +757,7 @@
"nixpkgs": [
"nixpkgs"
],
"systems": "systems_2"
"systems": "systems_3"
},
"locked": {
"lastModified": 1744251450,
@ -762,13 +781,13 @@
"base16-vim": "base16-vim",
"firefox-gnome-theme": "firefox-gnome-theme",
"flake-compat": "flake-compat_3",
"flake-utils": "flake-utils",
"flake-utils": "flake-utils_2",
"git-hooks": "git-hooks",
"gnome-shell": "gnome-shell",
"home-manager": "home-manager",
"nixpkgs": "nixpkgs_2",
"nur": "nur_2",
"systems": "systems_3",
"systems": "systems_4",
"tinted-foot": "tinted-foot",
"tinted-kitty": "tinted-kitty",
"tinted-schemes": "tinted-schemes",
@ -799,8 +818,9 @@
"type": "github"
},
"original": {
"id": "systems",
"type": "indirect"
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"systems_2": {
@ -813,9 +833,8 @@
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
"id": "systems",
"type": "indirect"
}
},
"systems_3": {
@ -848,6 +867,21 @@
"type": "github"
}
},
"systems_5": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"tinted-foot": {
"flake": false,
"locked": {
@ -1046,7 +1080,7 @@
},
"yt-x": {
"inputs": {
"flake-utils": "flake-utils_2",
"flake-utils": "flake-utils_3",
"nixpkgs": [
"nixpkgs"
]

View file

@ -7,6 +7,7 @@
impermanence.url = "github:nix-community/impermanence";
hardware.url = "github:NixOS/nixos-hardware/master";
flake-utils.url = "github:numtide/flake-utils";
flatpak.url = "github:gmodena/nix-flatpak";
stylix.url = "github:danth/stylix";

View file

@ -10,6 +10,10 @@ in
{
imports = umport { path = ./modules; };
home.sessionVariables = {
STEAM_COMPAT_DATA_PATH = "/mnt/SSD/SteamUnified";
};
module = {
programs = {
cli = mkOn [

View file

@ -19,6 +19,7 @@ in
config = mkIf cfg.enable {
environment.variables = {
STEAM_COMPAT_DATA_PATH = "/mnt/SSD/SteamUnified";
QT_QPA_PLATFORM = "wayland";
SDL_VIDEODRIVER = "wayland";
CLUTTER_BACKEND = "wayland";

View file

@ -25,44 +25,52 @@ in
};
};
config =
mkIf cfg.enable {
hardware.xone = on;
programs.fish.shellAbbrs = {
config = mkIf cfg.enable {
hardware.xone = on;
programs = {
fish.shellAbbrs = mkIf config.programs.fish.enable {
protonUpdate = getExe protonup + " -y";
protonRemove = getExe protonup + " -r";
protonList = getExe protonup + " -l";
};
programs = {
gamescope = on;
gamemode = on;
steam = on // {
protontricks = on;
gamescopeSession = on;
remotePlay.openFirewall = true;
extraCompatPackages = [
stable.proton-ge-bin
proton-ge-bin
];
package = steam.override {
extraEnv = {
gamescope = on;
gamemode = on;
steam = on // {
protontricks = on;
gamescopeSession = on;
remotePlay.openFirewall = true;
extraCompatPackages = [
stable.proton-ge-bin
proton-ge-bin
];
package = steam.override {
extraEnv =
{
MANGOHUD = true;
OBS_VKCAPTURE = true;
RADV_TEX_ANISO = 16;
}
// optionalAttrs (path.steamUnified != null) {
STEAM_COMPAT_CLIENT_INSTALL_PATH = config.users.users.nixzoid.home + "/.steam";
STEAM_COMPAT_DATA_PATH = path.steamUnified;
};
};
};
};
systemd.user.services.steam-autostart = mkIf cfg.autostart {
};
systemd.user.services.steam-autostart =
mkIf cfg.autostart {
wantedBy = [ "graphical-session.target" ];
serviceConfig = {
ExecStart = getExe pkgs.steam + " -nochatui -nofriendsui -silent %U";
Restart = "on-abort";
RestartSec = "5s";
};
}
// optionalAttrs (path.steamUnified != null) {
environment = {
STEAM_COMPAT_CLIENT_INSTALL_PATH = config.users.users.nixzoid.home + "/.steam";
STEAM_COMPAT_DATA_PATH = path.steamUnified;
};
};
}
// optionalAttrs (path.steamUnified != null) {
environment.variables.STEAM_COMPAT_DATA_PATH = path.steamUnified;
};
};
}