Skip to content

Commit d84df59

Browse files
authored
feat(home-manager): nushell init (#478)
1 parent f833a33 commit d84df59

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

modules/home-manager/all-modules.nix

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
./lazygit.nix
3131
./lsd.nix
3232
./newsboat.nix
33+
./nushell.nix
3334
./mako.nix
3435
./micro.nix
3536
./mpv.nix

modules/home-manager/nushell.nix

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{ catppuccinLib }:
2+
{ config, lib, ... }:
3+
4+
let
5+
inherit (config.catppuccin) sources;
6+
7+
cfg = config.catppuccin.nushell;
8+
in
9+
10+
{
11+
options.catppuccin.nushell = catppuccinLib.mkCatppuccinOption { name = "nushell"; };
12+
13+
config = lib.mkIf cfg.enable {
14+
programs.nushell = {
15+
extraConfig = lib.mkBefore ''
16+
source ${sources.nushell + "/catppuccin_${cfg.flavor}.nu"}
17+
'';
18+
};
19+
};
20+
}

pkgs/sources.json

+5
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,11 @@
144144
"lastModified": "2022-10-18",
145145
"rev": "be3d0ee1ba0fc26baf7a47c2aa7032b7541deb0f"
146146
},
147+
"nushell": {
148+
"hash": "sha256-O95OrdF9UA5xid1UlXzqrgZqw3fBpTChUDmyExmD2i4=",
149+
"lastModified": "2025-02-20",
150+
"rev": "82c31124b39294c722f5853cf94edc01ad5ddf34"
151+
},
147152
"nvim": {
148153
"hash": "sha256-4h/fzFY8JR9r+QnoiWEqgQKPMuu8i9HTC4v0Jp7iuUo=",
149154
"lastModified": "2025-02-28",

0 commit comments

Comments
 (0)