Move games into system/games.nix (rename of steam.nix)
Add RetroArch with some cores, add to games workspace
This commit is contained in:
parent
8a50023423
commit
c33367bdc7
8
Makefile
8
Makefile
|
@ -1,10 +1,10 @@
|
||||||
.PHONY: test build mu
|
.PHONY: build test switch
|
||||||
|
|
||||||
|
build:
|
||||||
|
nixos-rebuild build --flake .
|
||||||
|
|
||||||
test:
|
test:
|
||||||
sudo nixos-rebuild test --flake .
|
sudo nixos-rebuild test --flake .
|
||||||
|
|
||||||
build:
|
|
||||||
sudo nixos-rebuild build --flake .
|
|
||||||
|
|
||||||
switch:
|
switch:
|
||||||
sudo nixos-rebuild switch --flake .
|
sudo nixos-rebuild switch --flake .
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, home-manager, stylix, ... }:
|
outputs = { nixpkgs, home-manager, stylix, ... }:
|
||||||
let
|
let
|
||||||
default = {
|
default = {
|
||||||
hostName = "Atlas";
|
hostName = "Atlas";
|
||||||
|
@ -283,8 +283,7 @@
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
in systemConfig {
|
in systemConfig {
|
||||||
inherit hostName user system;
|
inherit hostName user system;
|
||||||
systemModules = default.systemModules ++ [ ./system/steam.nix ];
|
systemModules = default.systemModules ++ [ ./system/games.nix ];
|
||||||
homeModules = default.homeModules ++ [ ./home/games/default.nix ];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
{ ... }: { imports = [ ./minecraft.nix ./marathon.nix ]; }
|
|
|
@ -1,7 +0,0 @@
|
||||||
{ pkgs, ... }: {
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
alephone-marathon
|
|
||||||
alephone-durandal
|
|
||||||
alephone-infinity
|
|
||||||
];
|
|
||||||
}
|
|
|
@ -1 +0,0 @@
|
||||||
{ pkgs, ... }: { home.packages = with pkgs; [ prismlauncher ]; }
|
|
|
@ -226,7 +226,7 @@ in ''
|
||||||
bind = SUPER, G, moveworkspacetomonitor, name:games current
|
bind = SUPER, G, moveworkspacetomonitor, name:games current
|
||||||
bind = SUPER, G, workspace, name:games
|
bind = SUPER, G, workspace, name:games
|
||||||
bind = SUPER SHIFT, G, movetoworkspace, 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:(Friends List),class:(steam)
|
||||||
windowrulev2 = float,title:(Steam Settings),class:(steam)
|
windowrulev2 = float,title:(Steam Settings),class:(steam)
|
||||||
|
|
||||||
|
|
24
system/games.nix
Normal file
24
system/games.nix
Normal 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,5 +1,5 @@
|
||||||
{ ... }: {
|
{ ... }: {
|
||||||
imports = [ ./desktop.nix ./steam.nix ];
|
imports = [ ./desktop.nix ./games.nix ];
|
||||||
services = {
|
services = {
|
||||||
greetd.settings = let
|
greetd.settings = let
|
||||||
command = ''
|
command = ''
|
||||||
|
|
|
@ -1,14 +0,0 @@
|
||||||
{ ... }: {
|
|
||||||
hardware.steam-hardware.enable = true;
|
|
||||||
programs = {
|
|
||||||
xwayland.enable = true;
|
|
||||||
gamescope = {
|
|
||||||
enable = true;
|
|
||||||
capSysNice = true;
|
|
||||||
};
|
|
||||||
steam = {
|
|
||||||
enable = true;
|
|
||||||
remotePlay.openFirewall = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Reference in a new issue