mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 11:36:05 +01:00
aliae: add configLocation option
This commit is contained in:
parent
bd92e8ee4a
commit
2126d13d7f
4 changed files with 71 additions and 4 deletions
30
tests/modules/programs/aliae/asserts.nix
Normal file
30
tests/modules/programs/aliae/asserts.nix
Normal 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."
|
||||
];
|
||||
}
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
programs.aliae = {
|
||||
enable = true;
|
||||
configLocation = "/another/path/aliae.yaml";
|
||||
};
|
||||
}
|
||||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue