got rocket league actually working

This commit is contained in:
ISnortPennies 2023-02-04 00:22:38 -05:00
parent 8fd79814fd
commit 360b68aea3
8 changed files with 62 additions and 71 deletions

View file

@ -1,6 +1,7 @@
{ {
pkgs, pkgs,
settings, settings,
lib,
... ...
}: { }: {
system.stateVersion = settings.version; system.stateVersion = settings.version;
@ -22,7 +23,8 @@
}; };
#sound settings #sound settings
security.rtkit.enable = true; security.rtkit.enable = true;
sound.enable = false; #disable alsa sound.enable = lib.mkForce false; #disable alsa
hardware.pulseaudio.enable = lib.mkForce false; #disable pulseAudio
services.pipewire = { services.pipewire = {
enable = true; enable = true;
wireplumber.enable = true; wireplumber.enable = true;

39
flake.lock generated
View file

@ -59,11 +59,11 @@
"utils": "utils" "utils": "utils"
}, },
"locked": { "locked": {
"lastModified": 1675247113, "lastModified": 1675462931,
"narHash": "sha256-+YcXjfCP4hNu8A68b/UoXFCTDwKLuLV+x/7dQnM5U/o=", "narHash": "sha256-JiOUSERBtA1lN/s9YTKGZoZ3XUicHDwr+C8swaPSh3M=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "782cb855b2f23c485011a196c593e2d7e4fce746", "rev": "e2c1756e3ae001ca8696912016dd31cb1503ccf3",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -72,33 +72,13 @@
"type": "github" "type": "github"
} }
}, },
"nix-gaming": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1675100158,
"narHash": "sha256-B8Nhm28gfhjKQQJC3Za34pNrrgG0wCdrSwMwXq4W95k=",
"owner": "fufexan",
"repo": "nix-gaming",
"rev": "60c20c3c8682aaf55022e168b5b91f4dbd69849a",
"type": "github"
},
"original": {
"owner": "fufexan",
"repo": "nix-gaming",
"type": "github"
}
},
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1675183161, "lastModified": 1675362331,
"narHash": "sha256-Zq8sNgAxDckpn7tJo7V1afRSk2eoVbu3OjI1QklGLNg=", "narHash": "sha256-VmcnKPj5gJLxWK7Bxlhg2LoQvhKRss7Ax+uoFjd3qKY=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "e1e1b192c1a5aab2960bf0a0bd53a2e8124fa18e", "rev": "a100acd7bbf105915b0004427802286c37738fef",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -110,11 +90,11 @@
}, },
"nixpkgs-master": { "nixpkgs-master": {
"locked": { "locked": {
"lastModified": 1675294487, "lastModified": 1675485332,
"narHash": "sha256-0fnsREH0Zw/t/jJ8ENPOyzwvlQ8qwTV1EpmpdIuz8go=", "narHash": "sha256-fFxXsBC+0wpxVzcUMDFsghG+oWrsf5/yCzusfDcRhqg=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "a8d5afe9120947d47a304990045f49b5ade7a7c9", "rev": "ce310d1e4a614d7d0b24c9cc1ef172214a637d37",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -148,7 +128,6 @@
"inputs": { "inputs": {
"fetch-rs": "fetch-rs", "fetch-rs": "fetch-rs",
"home-manager": "home-manager", "home-manager": "home-manager",
"nix-gaming": "nix-gaming",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"nixpkgs-master": "nixpkgs-master", "nixpkgs-master": "nixpkgs-master",
"nvim-config": "nvim-config", "nvim-config": "nvim-config",

View file

@ -26,10 +26,6 @@
url = github:ISnortPennies/fetch-rs; url = github:ISnortPennies/fetch-rs;
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
nix-gaming = {
url = github:fufexan/nix-gaming;
inputs.nixpkgs.follows = "nixpkgs";
};
}; };
outputs = { outputs = {
self, self,

View file

@ -8,38 +8,10 @@
heroic heroic
legendary-gl legendary-gl
prismlauncher prismlauncher
] ];
++ builtins.attrValues (inputs.nix-gaming.lib.legendaryBuilder programs.steam = {
{ enable = true;
inherit (pkgs) system; remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
games = {
rocket-league = {
desktopName = "Rocket League";
tricks = ["dxvk" "win10"];
icon = builtins.fetchurl {
url = "https://user-images.githubusercontent.com/36706276/203341314-eaaa0659-9b79-4f40-8b4a-9bc1f2b17e45.png";
name = "rocket-league.png";
sha256 = "0a9ayr3vwsmljy7dpf8wgichsbj4i4wrmd8awv2hffab82fz4ykb";
}; };
discordIntegration = false;
gamemodeIntegration = false;
preCommands = ''
echo "the game will start!"
'';
postCommands = ''
echo "the game has stopped!"
'';
};
};
opts = {
wine = inputs.nix-gaming.packages.${pkgs.system}.wine-tkg;
};
});
} }

42
modules/gnome.nix Normal file
View file

@ -0,0 +1,42 @@
{
pkgs,
settings,
...
}: {
environment.gnome.excludePackages = (with pkgs; [
gnome-photos
gnome-tour
]) ++ (with pkgs.gnome; [
cheese # webcam tool
gnome-music
gnome-terminal
gedit # text editor
epiphany # web browser
geary # email reader
evince # document viewer
gnome-characters
totem # video player
tali # poker game
iagno # go game
hitori # sudoku game
atomix # puzzle game
]);
services.xserver = {
enable = true;
exportConfiguration = true; #make config debuggable
layout = "us";
libinput.enable = true;
xautolock.enable = false;
desktopManager.xterm.enable = false;
excludePackages = [pkgs.xterm];
desktopManager.gnome.enable = true;
displayManager = {
sessionCommands = ''
feh --bg-scale ${../images/recursion.png}
'';
gdm.enable = true;
};
};
}

View file

@ -17,7 +17,7 @@
"scripts" "scripts"
"sxhkd" "sxhkd"
"vfio" "vfio"
"xserver" "dwm"
"shells" "shells"
]; ];
in in

View file

@ -14,7 +14,7 @@
"prime" "prime"
"scripts" "scripts"
"sxhkd" "sxhkd"
"xserver" "gnome"
"shells" "shells"
"gaming" "gaming"
]; ];