mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-07 09:31:04 +01:00
todoman: add todoman module (#5252)
* todoman: add todoman module Adds Mikilio as maintainer for new module for todoman a standards-based task manager based on iCalendar Apply suggestions from code review Co-authored-by: Robert Helgesson <robert@rycee.net> Update modules/programs/todoman.nix Co-authored-by: Robert Helgesson <robert@rycee.net> * fix: correct config name * chore: add test --------- Co-authored-by: Robert Helgesson <robert@rycee.net>
This commit is contained in:
parent
01f40d52d6
commit
d4aebb947a
6 changed files with 94 additions and 0 deletions
21
tests/modules/programs/todoman/config.nix
Normal file
21
tests/modules/programs/todoman/config.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
programs.todoman = {
|
||||
enable = true;
|
||||
glob = "*/*";
|
||||
extraConfig = ''
|
||||
date_format = "%d.%m.%Y"
|
||||
default_list = "test"
|
||||
'';
|
||||
};
|
||||
|
||||
accounts.calendar.basePath = "base/path/calendar";
|
||||
|
||||
test.stubs = { todoman = { }; };
|
||||
|
||||
nmt.script = ''
|
||||
configFile=home-files/.config/todoman/config.py
|
||||
assertFileExists $configFile
|
||||
assertFileContent $configFile ${./todoman-config-expected}
|
||||
'';
|
||||
}
|
||||
|
||||
1
tests/modules/programs/todoman/default.nix
Normal file
1
tests/modules/programs/todoman/default.nix
Normal file
|
|
@ -0,0 +1 @@
|
|||
{ todoman-config = ./config.nix; }
|
||||
3
tests/modules/programs/todoman/todoman-config-expected
Normal file
3
tests/modules/programs/todoman/todoman-config-expected
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
path = "/home/hm-user/base/path/calendar/*/*"
|
||||
date_format = "%d.%m.%Y"
|
||||
default_list = "test"
|
||||
Loading…
Add table
Add a link
Reference in a new issue