programs.khal: add settings option (#4375)
This commit is contained in:
parent
8bde7a651b
commit
a7eab56be5
3 changed files with 62 additions and 4 deletions
|
|
@ -1,7 +1,15 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
programs.khal.enable = true;
|
||||
programs.khal = {
|
||||
enable = true;
|
||||
settings = {
|
||||
default.timedelta = "5d";
|
||||
view.agenda_event_format =
|
||||
"{calendar-color}{cancelled}{start-end-time-style} {title}{repeat-symbol}{reset}";
|
||||
};
|
||||
|
||||
};
|
||||
accounts.calendar = {
|
||||
basePath = "$XDG_CONFIG_HOME/cal";
|
||||
accounts = {
|
||||
|
|
@ -27,6 +35,8 @@
|
|||
test.stubs = { khal = { }; };
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.config/khal/config
|
||||
configFile=home-files/.config/khal/config
|
||||
assertFileExists $configFile
|
||||
assertFileContent $configFile ${./khal-config-expected}
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
26
tests/modules/programs/khal/khal-config-expected
Normal file
26
tests/modules/programs/khal/khal-config-expected
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
[calendars]
|
||||
[[test]]
|
||||
path = /home/hm-user/$XDG_CONFIG_HOME/cal/test/
|
||||
readonly = True
|
||||
priority=10
|
||||
type=calendar
|
||||
|
||||
|
||||
|
||||
[default]
|
||||
default_calendar=test
|
||||
highlight_event_days=true
|
||||
timedelta=5d
|
||||
|
||||
[locale]
|
||||
dateformat=%x
|
||||
datetimeformat=%c
|
||||
firstweekday=0
|
||||
longdateformat=%x
|
||||
longdatetimeformat=%c
|
||||
timeformat=%X
|
||||
unicode_symbols=true
|
||||
weeknumbers=off
|
||||
|
||||
[view]
|
||||
agenda_event_format={calendar-color}{cancelled}{start-end-time-style} {title}{repeat-symbol}{reset}
|
||||
Loading…
Add table
Add a link
Reference in a new issue