mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-02 23:21:02 +01:00
30 lines
800 B
Nix
30 lines
800 B
Nix
{ config, ... }:
|
|
{
|
|
programs.nushell = {
|
|
enable = true;
|
|
configDir = "${config.xdg.configHome}/nushell-alt-path";
|
|
extraConfig = ''
|
|
# extra config
|
|
'';
|
|
extraEnv = ''
|
|
# extra env
|
|
'';
|
|
extraLogin = ''
|
|
# extra login
|
|
'';
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertDirectoryExists home-files/.config/nushell-alt-path
|
|
|
|
assertFileExists home-files/.config/nushell-alt-path/config.nu
|
|
assertFileRegex home-files/.config/nushell-alt-path/config.nu '# extra config'
|
|
|
|
assertFileExists home-files/.config/nushell-alt-path/env.nu
|
|
assertFileRegex home-files/.config/nushell-alt-path/env.nu "# extra env"
|
|
|
|
assertFileExists home-files/.config/nushell-alt-path/login.nu
|
|
assertFileRegex home-files/.config/nushell-alt-path/login.nu '# extra login'
|
|
|
|
'';
|
|
}
|