Move games into system/games.nix (rename of steam.nix)

Add RetroArch with some cores, add to games workspace
This commit is contained in:
Evie Litherland-Smith 2024-01-21 10:31:46 +00:00
parent 8a50023423
commit c33367bdc7
9 changed files with 32 additions and 32 deletions

View file

@ -1,10 +1,10 @@
.PHONY: test build mu
.PHONY: build test switch
build:
nixos-rebuild build --flake .
test:
sudo nixos-rebuild test --flake .
build:
sudo nixos-rebuild build --flake .
switch:
sudo nixos-rebuild switch --flake .

View file

@ -13,7 +13,7 @@
};
};
outputs = { self, nixpkgs, home-manager, stylix, ... }:
outputs = { nixpkgs, home-manager, stylix, ... }:
let
default = {
hostName = "Atlas";
@ -283,8 +283,7 @@
system = "x86_64-linux";
in systemConfig {
inherit hostName user system;
systemModules = default.systemModules ++ [ ./system/steam.nix ];
homeModules = default.homeModules ++ [ ./home/games/default.nix ];
systemModules = default.systemModules ++ [ ./system/games.nix ];
};
};

View file

@ -1 +0,0 @@
{ ... }: { imports = [ ./minecraft.nix ./marathon.nix ]; }

View file

@ -1,7 +0,0 @@
{ pkgs, ... }: {
home.packages = with pkgs; [
alephone-marathon
alephone-durandal
alephone-infinity
];
}

View file

@ -1 +0,0 @@
{ pkgs, ... }: { home.packages = with pkgs; [ prismlauncher ]; }

View file

@ -226,7 +226,7 @@ in ''
bind = SUPER, G, moveworkspacetomonitor, name:games current
bind = SUPER, G, workspace, name:games
bind = SUPER SHIFT, G, movetoworkspace, name:games
windowrule = workspace name:games silent, (steam)
windowrule = workspace name:games silent, (steam|org.libretro.RetroArch)
windowrulev2 = float,title:(Friends List),class:(steam)
windowrulev2 = float,title:(Steam Settings),class:(steam)

24
system/games.nix Normal file
View file

@ -0,0 +1,24 @@
{ pkgs, ... }: {
environment.systemPackages = with pkgs; [
alephone-marathon
alephone-durandal
alephone-infinity
cemu
prismlauncher
(retroarch.override {
cores = with libretro; [ dolphin mgba mupen64plus ];
})
];
hardware.steam-hardware.enable = true;
programs = {
xwayland.enable = true;
gamescope = {
enable = true;
capSysNice = true;
};
steam = {
enable = true;
remotePlay.openFirewall = true;
};
};
}

View file

@ -1,5 +1,5 @@
{ ... }: {
imports = [ ./desktop.nix ./steam.nix ];
imports = [ ./desktop.nix ./games.nix ];
services = {
greetd.settings = let
command = ''

View file

@ -1,14 +0,0 @@
{ ... }: {
hardware.steam-hardware.enable = true;
programs = {
xwayland.enable = true;
gamescope = {
enable = true;
capSysNice = true;
};
steam = {
enable = true;
remotePlay.openFirewall = true;
};
};
}