From 11af9dc4fbda80218744026436f32d86452a6d07 Mon Sep 17 00:00:00 2001 From: notohh Date: Mon, 6 Mar 2023 05:36:50 -0500 Subject: [PATCH] feat: add env var for electron compat --- hosts/tsuki/default.nix | 12 +++++++----- modules/home/wayland/default.nix | 1 + 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/hosts/tsuki/default.nix b/hosts/tsuki/default.nix index b9a4aa5..360c001 100755 --- a/hosts/tsuki/default.nix +++ b/hosts/tsuki/default.nix @@ -68,7 +68,7 @@ }; }; }; -}; + }; programs.gnupg.agent = { enable = true; @@ -189,9 +189,10 @@ options = "--delete-older-than 7d"; }; settings = { + builders-use-substitutes = true; substituters = [ "https://hyprland.cachix.org" - "https://cache.nixos.org?priority=10" + "https://cache.nixos.org" ]; trusted-public-keys = [ "hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc=" @@ -205,12 +206,13 @@ channel = "https://nixos.org/channel/nixos-unstable"; }; - nixpkgs.config.permittedInsecurePackages = [ + nixpkgs.config = { + permittedInsecurePackages = [ "qtwebkit-5.212.0-alpha4" "electron-12.2.3" ]; - -nixpkgs.config.allowUnfree = true; + allowUnfree = true; +}; system.stateVersion = "23.05"; } diff --git a/modules/home/wayland/default.nix b/modules/home/wayland/default.nix index a8e8f3f..c07a77c 100644 --- a/modules/home/wayland/default.nix +++ b/modules/home/wayland/default.nix @@ -60,6 +60,7 @@ let ]; XCURSOR_SIZE = "24"; + NIXOS_OZONE_WL = "1"; };