Compare commits

..

3 commits

11 changed files with 33 additions and 16 deletions

View file

@ -6,5 +6,6 @@
docker = true;
};
extra = true;
gaming = true;
};
}

View file

@ -10,5 +10,6 @@
python = true;
};
extra = true;
gaming = true;
};
}

View file

@ -395,6 +395,7 @@ in
curl
python3Packages.pip
rename
which
# shell
zsh-completions

View file

@ -6,6 +6,7 @@
./desktop.nix
./dev.nix
./extra.nix
./gaming
./ssh.nix
./style.nix
./vim.nix

View file

@ -49,18 +49,11 @@
# downloading
transmission-qt
# FIXME Below not on aarch64
# wine
] ++ lib.optionals (builtins.currentSystem == "x86_64-linux") [
# Not sure this works in case of cross-compilation, but couldn't find a
# thing that works in both os and hm context
wine
# 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
View 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
];
};
}

View file

@ -2,6 +2,7 @@
{
options.frogeye = {
extra = lib.mkEnableOption "Big software";
gaming = lib.mkEnableOption "Games";
desktop = {
xorg = lib.mkEnableOption "Enable X11 support";
nixGLIntel = lib.mkEnableOption "Enable nixGLIntel/nixVulkanIntel for windows manager";

View file

@ -25,7 +25,6 @@
wget
kexec-tools
openvpn
update-resolv-conf # TODO Is it what I think it is?
# android tools
android-udev-rules
@ -64,9 +63,6 @@
};
# FIXME services.openvpn.servers.<name>.updateResolvConf=true
# For profiles in the extensions
# TODO Hibernation?
# TEST

View file

@ -3,9 +3,10 @@
imports = [
../options.nix
./battery.nix
./geoffrey.nix
./common.nix
./desktop.nix
./gaming
./geoffrey.nix
./wireless.nix
"${builtins.fetchTarball "https://github.com/nix-community/disko/archive/3cb78c93e6a02f494aaf6aeb37481c27a2e2ee22.tar.gz"}/module.nix"
];

7
os/gaming/default.nix Normal file
View 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
};
}

View file

@ -1,6 +1,6 @@
{ ... }:
{
frogeye.extra = false; # FIXME Not working yet
frogeye.extra = true;
frogeye.desktop.xorg = true;
frogeye.dev.docker = true;
}