mirror of
https://github.com/nix-community/home-manager
synced 2024-11-26 21:19:45 +01:00
mbsync: Place config file in $XDG_CONFIG_HOME
mbsync 1.5.0 supports placing isync's configuration file in $XDG_CONFIG_HOME/isyncrc [1]. [1] https://sourceforge.net/projects/isync/files/isync/1.5.0/
This commit is contained in:
parent
ef845a9ecc
commit
dd04aa823c
2 changed files with 3 additions and 3 deletions
|
@ -274,7 +274,7 @@ in {
|
||||||
|
|
||||||
programs.notmuch.new.ignore = [ ".uidvalidity" ".mbsyncstate" ];
|
programs.notmuch.new.ignore = [ ".uidvalidity" ".mbsyncstate" ];
|
||||||
|
|
||||||
home.file.".mbsyncrc".text = let
|
xdg.configFile."isyncrc".text = let
|
||||||
accountsConfig = map genAccountConfig mbsyncAccounts;
|
accountsConfig = map genAccountConfig mbsyncAccounts;
|
||||||
# Only generate this kind of Group configuration if there are ANY accounts
|
# Only generate this kind of Group configuration if there are ANY accounts
|
||||||
# that do NOT have a per-account groups/channels option(s) specified.
|
# that do NOT have a per-account groups/channels option(s) specified.
|
||||||
|
|
|
@ -79,8 +79,8 @@ with lib;
|
||||||
test.stubs.isync = { };
|
test.stubs.isync = { };
|
||||||
|
|
||||||
nmt.script = ''
|
nmt.script = ''
|
||||||
assertFileExists home-files/.mbsyncrc
|
assertFileExists home-files/.config/isyncrc
|
||||||
assertFileContent home-files/.mbsyncrc ${./mbsync-expected.conf}
|
assertFileContent home-files/.config/isyncrc ${./mbsync-expected.conf}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue