forked from nix-community/home-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allows for the database path for mu to be configured. Useful for keeping the maildir and mu xapian cache together without having to modify XDG_CACHE_HOME. Add test to check for custom home setting. Fixes nix-community#5534
- Loading branch information
Showing
4 changed files
with
46 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,6 @@ | |
'if [[ ! -d "/home/hm-user/.cache/mu" || ! "$MU_SORTED_ADDRS" = "[email protected] [email protected]" ]]; then' | ||
assertFileContains activate \ | ||
'run @mu@/bin/mu init --maildir=/home/hm-user/Mail [email protected] [email protected] $VERBOSE_ARG;' | ||
'run @mu@/bin/mu init --maildir=/home/hm-user/Mail --muhome "/home/hm-user/.cache/mu" --[email protected] [email protected] $VERBOSE_ARG;' | ||
''; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ config, ... }: { | ||
imports = [ ../../accounts/email-test-accounts.nix ]; | ||
|
||
accounts.email.accounts = { | ||
"[email protected]" = { | ||
mu.enable = true; | ||
aliases = [ "[email protected]" ]; | ||
}; | ||
}; | ||
|
||
programs.mu = { | ||
enable = true; | ||
home = config.xdg.dataHome + "/mu"; | ||
}; | ||
|
||
test.stubs.mu = { name = "mu"; }; | ||
|
||
nmt.script = '' | ||
assertFileContains activate \ | ||
'if [[ ! -d "/home/hm-user/.local/share/mu" || ! "$MU_SORTED_ADDRS" = "[email protected] [email protected]" ]]; then' | ||
assertFileContains activate \ | ||
'run @mu@/bin/mu init --maildir=/home/hm-user/Mail --muhome "/home/hm-user/.local/share/mu" [email protected] [email protected] $VERBOSE_ARG;' | ||
''; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
{ mu-basic-configuration = ./basic-configuration.nix; } | ||
{ | ||
mu-basic-configuration = ./basic-configuration.nix; | ||
mu-custom-configuration = ./custom-configuration.nix; | ||
} |