mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
added rocket-league and prismlauncher to laptop
This commit is contained in:
parent
67dbd4ceb8
commit
c525bfa78e
3 changed files with 53 additions and 3 deletions
10
flake.nix
10
flake.nix
|
|
@ -15,15 +15,19 @@
|
|||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
nvim-config = {
|
||||
url = "github:ISnortPennies/nvim-config";
|
||||
url = github:ISnortPennies/nvim-config;
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
sxhkd-flake = {
|
||||
url = "github:ISnortPennies/sxhkd-flake";
|
||||
url = github:ISnortPennies/sxhkd-flake;
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
fetch-rs = {
|
||||
url = "github:ISnortPennies/fetch-rs";
|
||||
url = github:ISnortPennies/fetch-rs;
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
nix-gaming = {
|
||||
url = github:fufexan/nix-gaming;
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
|
|
|||
45
modules/gaming.nix
Normal file
45
modules/gaming.nix
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
{
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
environment.systemPackages = with pkgs;
|
||||
[
|
||||
heroic
|
||||
legendary-gl
|
||||
prismlauncher
|
||||
]
|
||||
++ builtins.attrValues (inputs.nix-gaming.lib.legendaryBuilder
|
||||
{
|
||||
inherit (pkgs) system;
|
||||
|
||||
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;
|
||||
};
|
||||
});
|
||||
}
|
||||
|
|
@ -16,6 +16,7 @@
|
|||
"sxhkd"
|
||||
"xserver"
|
||||
"shells"
|
||||
"gaming"
|
||||
];
|
||||
in
|
||||
lib.lists.forEach modules (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue