1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00

aliae: add configLocation option

This commit is contained in:
Aguirre Matteo 2025-10-03 16:09:00 -03:00 committed by Austin Horstman
parent bd92e8ee4a
commit 2126d13d7f
4 changed files with 71 additions and 4 deletions

View file

@ -0,0 +1,30 @@
{
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."
];
}

View file

@ -0,0 +1,6 @@
{
programs.aliae = {
enable = true;
configLocation = "/another/path/aliae.yaml";
};
}

View file

@ -1 +1,5 @@
{ aliae-settings = ./settings.nix; }
{
aliae-settings = ./settings.nix;
aliae-asserts = ./asserts.nix;
aliae-config-location-no-settings = ./config-location-no-settings.nix;
}