diff --git a/nix/homeModules/common/fish/functions/nix-build.fish b/nix/homeModules/common/fish/functions/nix-build.fish index 8b074641..4f541a72 100644 --- a/nix/homeModules/common/fish/functions/nix-build.fish +++ b/nix/homeModules/common/fish/functions/nix-build.fish @@ -1,5 +1,5 @@ function nix-build - if type -q nom-build + if type -q nix-build nom-build $argv else nix-build $argv diff --git a/nix/homeModules/common/fish/functions/nix-shell.fish b/nix/homeModules/common/fish/functions/nix-shell.fish index b108e9ed..a615057f 100644 --- a/nix/homeModules/common/fish/functions/nix-shell.fish +++ b/nix/homeModules/common/fish/functions/nix-shell.fish @@ -1,5 +1,5 @@ function nix-shell - if type -q nom-shell + if type -q nix-shell nom-shell $argv else nix-shell $argv diff --git a/nix/overlays/iosevka.nix b/nix/overlays/iosevka.nix index a22bf34b..b161be51 100644 --- a/nix/overlays/iosevka.nix +++ b/nix/overlays/iosevka.nix @@ -51,10 +51,9 @@ final: prev: rec { }; weights = { - # Build 580, but indicate 400 in output Regular.shape = 580; - Regular.menu = 400; - Regular.css = 400; + Regular.menu = 580; + Regular.css = 580; Bold.shape = 700; Bold.menu = 700; Bold.css = 700; diff --git a/nix/overlays/nix-monitored.nix b/nix/overlays/nix-monitored.nix index b8aa13c1..c01747aa 100644 --- a/nix/overlays/nix-monitored.nix +++ b/nix/overlays/nix-monitored.nix @@ -13,38 +13,20 @@ let withNotify = false; }; - # * overrides the nix input as nix-monitored - # * any override changing the nix input will change that to nix-monitored - use-nix-monitored = + keepNixOverride = drv: - let - drv' = drv.override { nix = nix-monitored; }; - in - drv' - // rec { - override = - args: - let - args' = - if args ? nix then - args - // { - nix = nix-monitored.override { inherit (args) nix; }; - } - else - args; - in - (drv'.override args') // { inherit override; }; + drv + // { + override = args: drv.override (builtins.removeAttrs args [ "nix" ]); }; - - inherit (prev) lib; in -lib.optionalAttrs (prev ? nixos-rebuild) { - nixos-rebuild = use-nix-monitored prev.nixos-rebuild; -} -// lib.optionalAttrs (prev ? nixos-rebuild-ng) { - nixos-rebuild-ng = use-nix-monitored prev.nixos-rebuild-ng; -} -// { - nix-direnv = use-nix-monitored prev.nix-direnv; +{ + nixos-rebuild-ng = keepNixOverride ( + prev.nixos-rebuild-ng.override { + nix = nix-monitored; + } + ); + nix-direnv = prev.nix-direnv.override { + nix = nix-monitored; + }; }