Add steam
This commit is contained in:
parent
eb010055b2
commit
3175158f84
8 changed files with 43 additions and 18 deletions
|
|
@ -12,13 +12,13 @@ decoration {
|
||||||
rounding = 10
|
rounding = 10
|
||||||
blur {
|
blur {
|
||||||
enabled = true
|
enabled = true
|
||||||
size = 2
|
size = 4
|
||||||
passes = 2
|
passes = 2
|
||||||
new_optimizations = true
|
new_optimizations = true
|
||||||
xray = false
|
xray = false
|
||||||
}
|
}
|
||||||
active_opacity = 0.95
|
active_opacity = 0.9
|
||||||
inactive_opacity = 0.95
|
inactive_opacity = 0.9
|
||||||
fullscreen_opacity = 1.0
|
fullscreen_opacity = 1.0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -24,11 +24,11 @@
|
||||||
pkgs.blueberry
|
pkgs.blueberry
|
||||||
|
|
||||||
# Gaming
|
# Gaming
|
||||||
# pkgs.steam
|
pkgs.steam
|
||||||
# pkgs.steam-run
|
pkgs.steam-run
|
||||||
# (pkgs.lutris.override {
|
(pkgs.lutris.override {
|
||||||
# extraPkgs = pkgs: [ pkgs.wineWowPackages.stable pkgs.winetricks ];
|
extraPkgs = pkgs: [ pkgs.wineWowPackages.stable pkgs.winetricks ];
|
||||||
# })
|
})
|
||||||
|
|
||||||
# Downloads
|
# Downloads
|
||||||
pkgs.qbittorrent
|
pkgs.qbittorrent
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,7 @@
|
||||||
./users.nix
|
./users.nix
|
||||||
./wireguard.nix
|
./wireguard.nix
|
||||||
./dn-ca.nix
|
./dn-ca.nix
|
||||||
|
./environment.nix
|
||||||
# ./virtualisation.nix
|
# ./virtualisation.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
14
system/modules/environment.nix
Normal file
14
system/modules/environment.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
offload = pkgs.writeShellScriptBin "offload" ''
|
||||||
|
#!/bin/bash
|
||||||
|
export __NV_PRIME_RENDER_OFFLOAD=1
|
||||||
|
export __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0
|
||||||
|
export __GLX_VENDOR_LIBRARY_NAME=nvidia
|
||||||
|
export __VK_LAYER_NV_optimus=NVIDIA_only
|
||||||
|
exec "$@"
|
||||||
|
'';
|
||||||
|
in {
|
||||||
|
environment.systemPackages = [ offload ];
|
||||||
|
}
|
||||||
|
|
@ -3,9 +3,10 @@
|
||||||
{
|
{
|
||||||
nix = {
|
nix = {
|
||||||
settings = {
|
settings = {
|
||||||
warn-dirty = false;
|
warn-dirty = false;
|
||||||
experimental-features = [ "nix-command" "flakes" ];
|
experimental-features = [ "nix-command" "flakes" ];
|
||||||
auto-optimise-store = true;
|
auto-optimise-store = true;
|
||||||
};
|
substituters = ["https://nix-gaming.cachix.org"];
|
||||||
|
trusted-public-keys = ["nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4="]; };
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,9 +9,11 @@
|
||||||
|
|
||||||
|
|
||||||
hardware = {
|
hardware = {
|
||||||
|
steam-hardware.enable = true;
|
||||||
bluetooth.enable = true;
|
bluetooth.enable = true;
|
||||||
graphics = {
|
graphics = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
enable32Bit = true;
|
||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs; [
|
||||||
intel-media-driver # LIBVA_DRIVER_NAME=iHD
|
intel-media-driver # LIBVA_DRIVER_NAME=iHD
|
||||||
libvdpau-va-gl
|
libvdpau-va-gl
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,14 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
documentation.nixos.enable = false;
|
documentation.nixos.enable = false;
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
|
||||||
|
"steam"
|
||||||
|
"steam-original"
|
||||||
|
"steam-unwrapped"
|
||||||
|
"steam-run"
|
||||||
|
];
|
||||||
|
|
||||||
|
|
||||||
nix = {
|
nix = {
|
||||||
|
|
|
||||||
|
|
@ -11,11 +11,12 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
# steam = {
|
steam = {
|
||||||
# enable = true;
|
enable = true;
|
||||||
# remotePlay.openFirewall = true;
|
remotePlay.openFirewall = true;
|
||||||
# dedicatedServer.openFirewall = true;
|
dedicatedServer.openFirewall = true;
|
||||||
# };
|
localNetworkGameTransfers.openFirewall = true;
|
||||||
|
};
|
||||||
|
|
||||||
hyprland = {
|
hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue