mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-30 22:57:55 +00:00
users/foo-dogsquared/programs/nushell: init dedicated module
This commit is contained in:
parent
588457ec80
commit
29b9672b36
@ -12,6 +12,7 @@
|
||||
./programs/hledger.nix
|
||||
./programs/keys.nix
|
||||
./programs/nixvim
|
||||
./programs/nushell.nix
|
||||
./programs/custom-homepage.nix
|
||||
./programs/shell.nix
|
||||
./programs/terminal-multiplexer.nix
|
||||
|
@ -0,0 +1,37 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
userCfg = config.users.foo-dogsquared;
|
||||
cfg = userCfg.programs.nushell;
|
||||
in
|
||||
{
|
||||
options.users.foo-dogsquared.programs.nushell.enable =
|
||||
lib.mkEnableOption "Nushell setup";
|
||||
|
||||
config = lib.mkIf cfg.enable (lib.mkMerge [
|
||||
{
|
||||
programs.nushell = {
|
||||
enable = true;
|
||||
plugins = with pkgs.nushellPlugins; [
|
||||
dbus
|
||||
query
|
||||
skim
|
||||
];
|
||||
extraConfig = ''
|
||||
$env.config.show_banner = false
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
||||
(lib.mkIf config.programs.fzf.enable {
|
||||
# TODO:
|
||||
# - Learn how to define functions in Nushell.
|
||||
# - Learn how to attach bindings in Nushell.
|
||||
# - Port interactive selections from fzf.
|
||||
home.file."${config.xdg.cacheHome}/nu
|
||||
programs.nushell.extraConfig = ''
|
||||
|
||||
'';
|
||||
})
|
||||
]);
|
||||
}
|
@ -24,15 +24,6 @@ in
|
||||
];
|
||||
};
|
||||
|
||||
programs.nushell = {
|
||||
enable = true;
|
||||
plugins = with pkgs.nushellPlugins; [
|
||||
dbus
|
||||
query
|
||||
skim
|
||||
];
|
||||
};
|
||||
|
||||
programs.atuin = {
|
||||
enable = true;
|
||||
settings = {
|
||||
|
@ -21,7 +21,8 @@ in {
|
||||
];
|
||||
|
||||
users.foo-dogsquared.programs = {
|
||||
shell.enable = lib.mkDefault true;
|
||||
shell.enable = true;
|
||||
nushell.enable = true;
|
||||
git = {
|
||||
enable = lib.mkDefault true;
|
||||
instaweb.enable = true;
|
||||
|
Loading…
Reference in New Issue
Block a user