mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-04 08:01:02 +01:00
ludusavi: add test
This commit is contained in:
parent
06f81463bb
commit
db44f38047
4 changed files with 34 additions and 0 deletions
|
|
@ -96,6 +96,7 @@ let
|
|||
"lf"
|
||||
"lieer"
|
||||
"lsd"
|
||||
"ludusavi"
|
||||
"mbsync"
|
||||
"meli"
|
||||
"mergiraf"
|
||||
|
|
|
|||
9
tests/modules/services/ludusavi/config.yaml
Normal file
9
tests/modules/services/ludusavi/config.yaml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
backup:
|
||||
path: ~/.local/state/backups/ludusavi
|
||||
language: en-US
|
||||
restore:
|
||||
path: ~/.local/state/backups/ludusavi
|
||||
roots:
|
||||
- path: ~/.local/share/Steam
|
||||
store: steam
|
||||
theme: light
|
||||
1
tests/modules/services/ludusavi/default.nix
Normal file
1
tests/modules/services/ludusavi/default.nix
Normal file
|
|
@ -0,0 +1 @@
|
|||
{ ludusavi-settings = ./settings.nix; }
|
||||
23
tests/modules/services/ludusavi/settings.nix
Normal file
23
tests/modules/services/ludusavi/settings.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
services.ludusavi = {
|
||||
enable = true;
|
||||
settings = {
|
||||
language = "en-US";
|
||||
theme = "light";
|
||||
roots = [
|
||||
{
|
||||
path = "~/.local/share/Steam";
|
||||
store = "steam";
|
||||
}
|
||||
];
|
||||
backup.path = "~/.local/state/backups/ludusavi";
|
||||
restore.path = "~/.local/state/backups/ludusavi";
|
||||
};
|
||||
};
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.config/ludusavi/config.yaml
|
||||
assertFileContent home-files/.config/ludusavi/config.yaml \
|
||||
${./config.yaml}
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue