mirror of
https://github.com/nix-community/home-manager
synced 2024-11-01 00:39:45 +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
745 B
Nix
33 lines
745 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
config = {
|
|
programs = {
|
|
zsh.enable = true;
|
|
|
|
powerline-go = {
|
|
enable = true;
|
|
newline = true;
|
|
modules = [ "nix-shell" ];
|
|
pathAliases = { "\\~/project/foo" = "prj-foo"; };
|
|
settings = {
|
|
ignore-repos = [ "/home/me/project1" "/home/me/project2" ];
|
|
};
|
|
};
|
|
};
|
|
|
|
test.stubs = {
|
|
powerline-go = { };
|
|
zsh = { };
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.zshrc
|
|
assertFileContains \
|
|
home-files/.zshrc \
|
|
'/bin/powerline-go -error $? -shell zsh -modules nix-shell -newline -path-aliases \~/project/foo=prj-foo -ignore-repos /home/me/project1,/home/me/project2'
|
|
'';
|
|
};
|
|
}
|