mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-03 07:31:03 +01:00
30 lines
635 B
Nix
30 lines
635 B
Nix
{
|
|
programs.aliae = {
|
|
enable = true;
|
|
configLocation = "/another/path/aliae.yaml";
|
|
settings = {
|
|
alias = [
|
|
{
|
|
name = "a";
|
|
value = "aliae";
|
|
}
|
|
{
|
|
name = "hello-world";
|
|
value = ''echo "hello world"'';
|
|
type = "function";
|
|
}
|
|
];
|
|
|
|
env = [
|
|
{
|
|
name = "EDITOR";
|
|
value = "code-insiders --wait";
|
|
}
|
|
];
|
|
};
|
|
};
|
|
|
|
test.asserts.assertions.expected = [
|
|
"The option `programs.aliae.configLocation` must point to a file inside user's home directory when `programs.aliae.settings` is set."
|
|
];
|
|
}
|