From 0f6f431cd41ecc6b0d4403602207210cd659cd9e Mon Sep 17 00:00:00 2001 From: jasmine Date: Thu, 6 Mar 2025 16:12:43 +0800 Subject: [PATCH] chore: refactor --- home-manager/sajenim/features/cli/zsh.nix | 1 - overlays/default.nix | 10 +++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/home-manager/sajenim/features/cli/zsh.nix b/home-manager/sajenim/features/cli/zsh.nix index 59b9876..25fd98c 100644 --- a/home-manager/sajenim/features/cli/zsh.nix +++ b/home-manager/sajenim/features/cli/zsh.nix @@ -53,7 +53,6 @@ path+=('/home/sajenim/.repositories/sysadmin.sh/bin') bindkey "^[[1;5C" forward-word bindkey "^[[1;5D" backward-word - export _JAVA_AWT_WM_NONREPARENTING=1 export PATH PROMPT='%F{blue}%n@%m %F{cyan}%~ %F{red}♥ %f'; ''; diff --git a/overlays/default.nix b/overlays/default.nix index 7bfcb4c..26e6eb8 100644 --- a/overlays/default.nix +++ b/overlays/default.nix @@ -7,9 +7,13 @@ # You can change versions, add patches, set compilation flags, anything really. # https://nixos.wiki/wiki/Overlays modifications = final: prev: { - # example = prev.example.overrideAttrs (oldAttrs: rec { - # ... - # }); + logisim-evolution = prev.logisim-evolution.overrideAttrs (oldAttrs: { + postInstall = + (oldAttrs.postInstall or "") + + '' + wrapProgram $out/bin/logisim-evolution --set _JAVA_AWT_WM_NONREPARENTING 1 + ''; + }); }; # When applied, the unstable nixpkgs set (declared in the flake inputs) will