nix #11
|
@ -6,5 +6,6 @@
|
||||||
docker = true;
|
docker = true;
|
||||||
};
|
};
|
||||||
extra = true;
|
extra = true;
|
||||||
|
gaming = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,5 +10,6 @@
|
||||||
python = true;
|
python = true;
|
||||||
};
|
};
|
||||||
extra = true;
|
extra = true;
|
||||||
|
gaming = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -395,6 +395,7 @@ in
|
||||||
curl
|
curl
|
||||||
python3Packages.pip
|
python3Packages.pip
|
||||||
rename
|
rename
|
||||||
|
which
|
||||||
|
|
||||||
# shell
|
# shell
|
||||||
zsh-completions
|
zsh-completions
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
./desktop.nix
|
./desktop.nix
|
||||||
./dev.nix
|
./dev.nix
|
||||||
./extra.nix
|
./extra.nix
|
||||||
|
./gaming
|
||||||
./ssh.nix
|
./ssh.nix
|
||||||
./style.nix
|
./style.nix
|
||||||
./vim.nix
|
./vim.nix
|
||||||
|
|
|
@ -51,16 +51,8 @@
|
||||||
transmission-qt
|
transmission-qt
|
||||||
|
|
||||||
# FIXME Below not on aarch64
|
# FIXME Below not on aarch64
|
||||||
# wine
|
|
||||||
wine
|
wine
|
||||||
# TODO wine-gecko wine-mono lib32-libpulse (?)
|
# TODO wine-gecko wine-mono lib32-libpulse (?)
|
||||||
|
|
||||||
# gaming
|
|
||||||
# steam # FIXME Requires i686-linux or something. IIRC the package says to use the NixOS config and not it directly.
|
|
||||||
yuzu-mainline
|
|
||||||
minecraft
|
|
||||||
# TODO factorio
|
|
||||||
|
|
||||||
]);
|
]);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
15
hm/gaming/default.nix
Normal file
15
hm/gaming/default.nix
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
{ pkgs, lib, config, ... }:
|
||||||
|
{
|
||||||
|
config = lib.mkIf config.frogeye.gaming {
|
||||||
|
# Using config.nixpkgs.<something> creates an infinite recursion,
|
||||||
|
# but the above might not be correct in case of cross-compiling?
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
# gaming
|
||||||
|
yuzu-mainline
|
||||||
|
minecraft
|
||||||
|
# TODO factorio
|
||||||
|
|
||||||
|
steam # Common pitfall: https://github.com/NixOS/nixpkgs/issues/86506#issuecomment-623746883
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
|
@ -2,6 +2,7 @@
|
||||||
{
|
{
|
||||||
options.frogeye = {
|
options.frogeye = {
|
||||||
extra = lib.mkEnableOption "Big software";
|
extra = lib.mkEnableOption "Big software";
|
||||||
|
gaming = lib.mkEnableOption "Games";
|
||||||
desktop = {
|
desktop = {
|
||||||
xorg = lib.mkEnableOption "Enable X11 support";
|
xorg = lib.mkEnableOption "Enable X11 support";
|
||||||
nixGLIntel = lib.mkEnableOption "Enable nixGLIntel/nixVulkanIntel for windows manager";
|
nixGLIntel = lib.mkEnableOption "Enable nixGLIntel/nixVulkanIntel for windows manager";
|
||||||
|
|
|
@ -3,9 +3,10 @@
|
||||||
imports = [
|
imports = [
|
||||||
../options.nix
|
../options.nix
|
||||||
./battery.nix
|
./battery.nix
|
||||||
./geoffrey.nix
|
|
||||||
./common.nix
|
./common.nix
|
||||||
./desktop.nix
|
./desktop.nix
|
||||||
|
./gaming
|
||||||
|
./geoffrey.nix
|
||||||
./wireless.nix
|
./wireless.nix
|
||||||
"${builtins.fetchTarball "https://github.com/nix-community/disko/archive/3cb78c93e6a02f494aaf6aeb37481c27a2e2ee22.tar.gz"}/module.nix"
|
"${builtins.fetchTarball "https://github.com/nix-community/disko/archive/3cb78c93e6a02f494aaf6aeb37481c27a2e2ee22.tar.gz"}/module.nix"
|
||||||
];
|
];
|
||||||
|
|
7
os/gaming/default.nix
Normal file
7
os/gaming/default.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{ pkgs, lib, config, ... }:
|
||||||
|
{
|
||||||
|
config = lib.mkIf config.frogeye.gaming {
|
||||||
|
programs.steam.enable = true;
|
||||||
|
hardware.opengl.driSupport32Bit = true; # Enables support for 32bit libs that steam uses
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue