mirror of
https://github.com/nix-community/home-manager
synced 2024-11-30 15:09:46 +01:00
cb09a968e9
This option provides a more convenient way to overlay dummy packages. It also adds a function `config.lib.test.mkStubPackage` that can, e.g., be used for `package` options.
33 lines
591 B
Nix
33 lines
591 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;
|
|
}
|
|
];
|
|
};
|
|
|
|
test.stubs.nushell = { };
|
|
|
|
nmt.script = ''
|
|
assertFileContent \
|
|
home-files/.config/nu/config.toml \
|
|
${./settings-expected.toml}
|
|
'';
|
|
};
|
|
}
|