From 9195d6f6de4f02859492502eb44b268cb9b2b51f Mon Sep 17 00:00:00 2001 From: fruchti Date: Sat, 27 Apr 2024 14:32:05 +0200 Subject: [PATCH 1/3] Horizon EDA: Fix Intel GPU redraw issue --- overlays/default.nix | 1 + overlays/horizon-eda.nix | 13 +++++++++++++ overlays/horizon_software_draw_surface.patch | 10 ++++++++++ 3 files changed, 24 insertions(+) create mode 100644 overlays/horizon-eda.nix create mode 100644 overlays/horizon_software_draw_surface.patch diff --git a/overlays/default.nix b/overlays/default.nix index 7cd1fd2..eab7738 100644 --- a/overlays/default.nix +++ b/overlays/default.nix @@ -2,5 +2,6 @@ { imports = [ ./burp.nix + ./horizon-eda.nix ]; } diff --git a/overlays/horizon-eda.nix b/overlays/horizon-eda.nix new file mode 100644 index 0000000..3022fdf --- /dev/null +++ b/overlays/horizon-eda.nix @@ -0,0 +1,13 @@ +{ config, ... }: +{ + nixpkgs.overlays = [ + (self: super: { + horizon-eda = (super.horizon-eda.overrideAttrs (old: { + # Add an environment variable to fix redraw issues on Intel Graphics + patches = [ + ./horizon_software_draw_surface.patch + ]; + })); + }) + ]; +} diff --git a/overlays/horizon_software_draw_surface.patch b/overlays/horizon_software_draw_surface.patch new file mode 100644 index 0000000..c44c667 --- /dev/null +++ b/overlays/horizon_software_draw_surface.patch @@ -0,0 +1,10 @@ +diff --git a/org.horizon_eda.HorizonEDA.desktop b/org.horizon_eda.HorizonEDA.desktop +index 7551df54..d8df7800 100644 +--- a/org.horizon_eda.HorizonEDA.desktop ++++ b/org.horizon_eda.HorizonEDA.desktop +@@ -5,4 +5,4 @@ Categories=Development;Engineering;Electronics; + Type=Application + Terminal=false + Icon=org.horizon_eda.HorizonEDA +-Exec=horizon-eda %U ++Exec=env GDK_GL=software-draw-surface horizon-eda %U From 958117375a72a8f71ae202701218461de9868cee Mon Sep 17 00:00:00 2001 From: fruchti Date: Sat, 27 Apr 2024 14:33:05 +0200 Subject: [PATCH 2/3] =?UTF-8?q?Fix=20=E2=80=98sudo=20nixos-rebuild?= =?UTF-8?q?=E2=80=99=20asking=20for=20password?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- base/users.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/users.nix b/base/users.nix index 298c65c..e6f84cb 100644 --- a/base/users.nix +++ b/base/users.nix @@ -24,7 +24,7 @@ in groups = [ "wheel" ]; commands = [ { - command = "${pkgs.nixos-rebuild}/bin/nixos-rebuild *"; + command = "/run/current-system/sw/bin/nixos-rebuild"; options = [ "NOPASSWD" ]; } ]; From 2a4dce6e025b81db1f131e4dfeb86d76575f0edd Mon Sep 17 00:00:00 2001 From: fruchti Date: Sat, 27 Apr 2024 14:34:02 +0200 Subject: [PATCH 3/3] GNOME: Explicitly enable gnome-keyring --- hosts/gnome.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/hosts/gnome.nix b/hosts/gnome.nix index 41ab98f..08b1aca 100644 --- a/hosts/gnome.nix +++ b/hosts/gnome.nix @@ -11,6 +11,7 @@ autoLogin.user = "fruchti"; }; security.pam.services.gdm.enableGnomeKeyring = true; + services.gnome.gnome-keyring.enable = true; services.touchegg.enable = true; services.gnome.gnome-settings-daemon.enable = true;