mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
aliae: add module
This commit is contained in:
parent
48e7d82187
commit
10bcab77af
4 changed files with 117 additions and 0 deletions
9
tests/modules/programs/aliae/aliae.yaml
Normal file
9
tests/modules/programs/aliae/aliae.yaml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
alias:
|
||||
- name: a
|
||||
value: aliae
|
||||
- name: hello-world
|
||||
type: function
|
||||
value: echo "hello world"
|
||||
env:
|
||||
- name: EDITOR
|
||||
value: code-insiders --wait
|
||||
1
tests/modules/programs/aliae/default.nix
Normal file
1
tests/modules/programs/aliae/default.nix
Normal file
|
|
@ -0,0 +1 @@
|
|||
{ aliae-settings = ./settings.nix; }
|
||||
30
tests/modules/programs/aliae/settings.nix
Normal file
30
tests/modules/programs/aliae/settings.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
programs.aliae = {
|
||||
enable = true;
|
||||
settings = {
|
||||
alias = [
|
||||
{
|
||||
name = "a";
|
||||
value = "aliae";
|
||||
}
|
||||
{
|
||||
name = "hello-world";
|
||||
value = ''echo "hello world"'';
|
||||
type = "function";
|
||||
}
|
||||
];
|
||||
|
||||
env = [
|
||||
{
|
||||
name = "EDITOR";
|
||||
value = "code-insiders --wait";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.aliae.yaml
|
||||
assertFileContent home-files/.aliae.yaml ${./aliae.yaml}
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue