From 179d5953a1a8ea8bc25b58c320c673367b339e3a Mon Sep 17 00:00:00 2001 From: twoneis Date: Tue, 8 Oct 2024 14:30:13 +0200 Subject: [PATCH] indicate nix dev shell --- modules/utils/default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/utils/default.nix b/modules/utils/default.nix index c2dc8e8..fd65746 100644 --- a/modules/utils/default.nix +++ b/modules/utils/default.nix @@ -1,6 +1,7 @@ -{ config, pkgs, ... }: let +{ config, lib, pkgs, ... }: let inherit (config) conf; inherit (config.conf) keys; + inherit (lib.strings) concatMapStrings; time = pkgs.makeDesktopItem { name = "peaclock-desktop"; desktopName = "Time"; @@ -86,9 +87,12 @@ in { programs.fish = { enable = true; plugins = with pkgs.fishPlugins; [ - { name = "tide"; src = pure.src; } + { name = "pure"; src = pure.src; } { name = "bass"; src = bass.src; } ]; + interactiveShellInit = concatMapStrings (x: "set --universal " + x + "\n") [ + "pure_enable_nixdevshell true" + ]; shellAbbrs = { ga = "git add"; gc = "git commit";