From e7df3f6466b29f1bd4ec6b8c428c1f2fedf64c92 Mon Sep 17 00:00:00 2001 From: Yusuf Bera Ertan Date: Tue, 12 Jul 2022 03:56:08 +0300 Subject: [PATCH] okay ig --- pkgs-set/overlays/steam.nix | 4 ++++ users/patriot/default.nix | 11 ++++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/pkgs-set/overlays/steam.nix b/pkgs-set/overlays/steam.nix index 56ca78f..caf438b 100644 --- a/pkgs-set/overlays/steam.nix +++ b/pkgs-set/overlays/steam.nix @@ -1,5 +1,9 @@ final: prev: { steam = prev.steam.override { extraLibraries = pkgs: with pkgs; [mimalloc pipewire vulkan-loader wayland wayland-protocols]; + extraProfile = '' + unset VK_ICD_FILENAMES + export VK_ICD_FILENAMES="/run/opengl-driver/share/vulkan/icd.d:/run/opengl-driver-32/share/vulkan/icd.d" + ''; }; } diff --git a/users/patriot/default.nix b/users/patriot/default.nix index c23fc9b..5d56987 100644 --- a/users/patriot/default.nix +++ b/users/patriot/default.nix @@ -13,7 +13,9 @@ pkgBin = tlib.pkgBin pkgs; nixosConfig = globalAttrs.config; in { - imports = [inputs.hyprland.nixosModules.default]; + imports = [ + inputs.hyprland.nixosModules.default + ]; users.users.patriot = { isNormalUser = true; @@ -28,6 +30,7 @@ in { hashedPassword = "$6$spzqhAyJfhHy$iHgLBlhjGn1l8PnbjJdWTn1GPvcjMqYNKUzdCe/7IrX6sHNgETSr/Nfpdmq9FCXLhrAfwHOd/q/8SvfeIeNX4/"; }; environment = { + persistence.${config.system.persistDir}.directories = ["/home/patriot/.local/share/Steam"]; systemPackages = [pkgs.qt5.qtwayland]; shells = with pkgs; [bashInteractive zsh]; }; @@ -41,7 +44,7 @@ in { # this is needed for impermanence fuse.userAllowOther = true; adb.enable = true; - steam.enable = false; + steam.enable = true; kdeconnect.enable = true; # gnome stuffs seahorse.enable = true; @@ -94,11 +97,10 @@ in { builtins.map (n: "${prefix}/${n}") (l.flatten paths); in { directories = - [ + l.flatten [ "Downloads" "proj" # "smos" - # ".steam" ".wine" # ssh / gpg / keys ".ssh" @@ -112,7 +114,6 @@ in { ++ mkPaths ".local/share" [ "direnv" "zsh" - # "Steam" "keyrings" "lutris" "PolyMC"