From 929b704d7aad13eadeb174e217d0ff9cb97ac138 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Fri, 3 Jan 2020 14:28:53 +0000 Subject: [PATCH] extract games --- nixos/boxes/skinnyv.nix | 16 +++++++++++++++- nixos/games.nix | 8 ++++++++ nixos/gui.nix | 2 -- nixos/home.nix | 1 + 4 files changed, 24 insertions(+), 3 deletions(-) create mode 100644 nixos/games.nix diff --git a/nixos/boxes/skinnyv.nix b/nixos/boxes/skinnyv.nix index de1962ab..70ded4ac 100644 --- a/nixos/boxes/skinnyv.nix +++ b/nixos/boxes/skinnyv.nix @@ -1,8 +1,21 @@ { config, pkgs, ... }: { networking.hostName = "skinnyv"; + + nixpkgs.config.packageOverrides = pkgs: { + linux_latest_hardened = pkgs.linux_latest_hardened.override { + extraConfig = '' + IA32_EMULATION y + KVM m + KVM_INTEL m + ''; + features.ia32Emulation = true; + enableParallelBuilding = true; + }; + }; + boot = { - kernelPackages = pkgs.linuxPackages_latest_hardened; + kernelPackages = pkgs.linuxPackagesFor pkgs.linux_latest_hardened; kernelParams = [ "i915.enable_rc6=7" ]; @@ -26,5 +39,6 @@ ../boot.nix ../common.nix ../gfx-intel.nix + ../zerotier.nix ]; } diff --git a/nixos/games.nix b/nixos/games.nix new file mode 100644 index 00000000..7259d950 --- /dev/null +++ b/nixos/games.nix @@ -0,0 +1,8 @@ +{ config, pkgs, ... }: + +{ + home.packages = with pkgs; [ + (wine.override { wineBuild = "wineWow"; }) winetricks + steam + ]; +} diff --git a/nixos/gui.nix b/nixos/gui.nix index fa4b4a8d..b902a1d8 100644 --- a/nixos/gui.nix +++ b/nixos/gui.nix @@ -12,8 +12,6 @@ yubico-piv-tool yubikey-personalization yubikey-personalization-gui yubikey-manager-qt slack discord obs-studio gnome3.nautilus gnome3.eog hopper - (wine.override { wineBuild = "wineWow"; }) winetricks - steam unstable.qemu unstable.aqemu ]; diff --git a/nixos/home.nix b/nixos/home.nix index 73412aea..373ba246 100644 --- a/nixos/home.nix +++ b/nixos/home.nix @@ -31,6 +31,7 @@ in ./user-xsession.nix ./cli.nix ./gui.nix + ./games.nix ]; gtk = {