mirror of
https://github.com/nix-community/home-manager
synced 2024-11-16 16:19:44 +01:00
35 lines
664 B
Nix
35 lines
664 B
Nix
|
{ config, lib, pkgs, ... }:
|
||
|
|
||
|
with lib;
|
||
|
|
||
|
{
|
||
|
config = {
|
||
|
programs.nushell = {
|
||
|
enable = true;
|
||
|
|
||
|
settings = mkMerge [
|
||
|
{
|
||
|
edit_mode = "vi";
|
||
|
startup = [ "alias la [] { ls -a }" ];
|
||
|
completion_mode = "circular";
|
||
|
key_timeout = 10;
|
||
|
}
|
||
|
|
||
|
{
|
||
|
startup = [ "alias e [msg] { echo $msg }" ];
|
||
|
no_auto_pivot = true;
|
||
|
}
|
||
|
];
|
||
|
};
|
||
|
|
||
|
nixpkgs.overlays =
|
||
|
[ (self: super: { nushell = pkgs.writeScriptBin "dummy-nushell" ""; }) ];
|
||
|
|
||
|
nmt.script = ''
|
||
|
assertFileContent \
|
||
|
home-files/.config/nu/config.toml \
|
||
|
${./settings-expected.toml}
|
||
|
'';
|
||
|
};
|
||
|
}
|