add steam
This commit is contained in:
parent
17edcc00e4
commit
dc65f7ae2b
4 changed files with 27 additions and 3 deletions
|
@ -8,6 +8,11 @@
|
||||||
kernel.sysctl = {
|
kernel.sysctl = {
|
||||||
"vm.swappiness" = 1;
|
"vm.swappiness" = 1;
|
||||||
"max_user_watches" = 524288;
|
"max_user_watches" = 524288;
|
||||||
|
"kernel.dmesg_restrict" = true;
|
||||||
|
"kernel.unprivileged_bpf_disabled" = true;
|
||||||
|
"kernel.unprivileged_userns_clone" = 1;
|
||||||
|
"net.core.bpf_jit_enable" = pkgs.lib.mkDefault false;
|
||||||
|
"net.core.bpf_jit_harden" = true;
|
||||||
};
|
};
|
||||||
loader.grub = {
|
loader.grub = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -15,4 +20,5 @@
|
||||||
useOSProber = true;
|
useOSProber = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,8 +2,20 @@
|
||||||
{
|
{
|
||||||
|
|
||||||
networking.hostName = "foureighty";
|
networking.hostName = "foureighty";
|
||||||
|
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 = {
|
boot = {
|
||||||
kernelPackages = pkgs.linuxPackages_latest_hardened;
|
kernelPackages = pkgs.linuxPackagesFor pkgs.linux_latest_hardened;
|
||||||
extraModulePackages = with config.boot.kernelPackages; [ wireguard ];
|
extraModulePackages = with config.boot.kernelPackages; [ wireguard ];
|
||||||
|
|
||||||
initrd.kernelModules = [ "i915" ];
|
initrd.kernelModules = [ "i915" ];
|
||||||
|
@ -43,7 +55,9 @@
|
||||||
|
|
||||||
hardware.nvidiaOptimus.disable = true;
|
hardware.nvidiaOptimus.disable = true;
|
||||||
hardware.opengl.extraPackages = [ pkgs.linuxPackages.nvidia_x11.out ];
|
hardware.opengl.extraPackages = [ pkgs.linuxPackages.nvidia_x11.out ];
|
||||||
hardware.opengl.extraPackages32 = [ pkgs.linuxPackages.nvidia_x11.lib32 ];
|
hardware.opengl.extraPackages32 = [ pkgs.linuxPackages.nvidia_x11.lib32 pkgs.pkgsi686Linux.libva ];
|
||||||
|
hardware.opengl.driSupport32Bit = true;
|
||||||
|
hardware.pulseaudio.support32Bit = true;
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
/etc/nixos/hardware-configuration.nix
|
/etc/nixos/hardware-configuration.nix
|
||||||
|
|
|
@ -46,6 +46,8 @@ in
|
||||||
|
|
||||||
fonts.fonts = with pkgs; [ powerline-fonts weather-icons material-icons source-code-pro fira-code noto-fonts-emoji emojione iosevka ];
|
fonts.fonts = with pkgs; [ powerline-fonts weather-icons material-icons source-code-pro fira-code noto-fonts-emoji emojione iosevka ];
|
||||||
|
|
||||||
|
services.haveged.enable = true;
|
||||||
|
|
||||||
nix = {
|
nix = {
|
||||||
autoOptimiseStore = true;
|
autoOptimiseStore = true;
|
||||||
daemonIONiceLevel = 7;
|
daemonIONiceLevel = 7;
|
||||||
|
|
|
@ -9,10 +9,12 @@
|
||||||
notable evince signal-desktop
|
notable evince signal-desktop
|
||||||
libreoffice unstable.tor-browser-bundle-bin vlc
|
libreoffice unstable.tor-browser-bundle-bin vlc
|
||||||
jetbrains.goland unstable.jetbrains.clion jetbrains.idea-ultimate unstable.android-studio
|
jetbrains.goland unstable.jetbrains.clion jetbrains.idea-ultimate unstable.android-studio
|
||||||
(wine.override { wineBuild = "wineWow"; }) winetricks
|
|
||||||
yubico-piv-tool yubikey-personalization yubikey-personalization-gui yubikey-manager-qt
|
yubico-piv-tool yubikey-personalization yubikey-personalization-gui yubikey-manager-qt
|
||||||
slack discord obs-studio gnome3.nautilus gnome3.eog
|
slack discord obs-studio gnome3.nautilus gnome3.eog
|
||||||
hopper
|
hopper
|
||||||
|
(wine.override { wineBuild = "wineWow"; }) winetricks
|
||||||
|
steam
|
||||||
|
# (steam.override { withPrimus = true; extraPkgs = pkgs: [ bumblebee glxinfo ]; nativeOnly = true; })
|
||||||
];
|
];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue