<heartman>
Question regarding email account management via home-manager. When specifying a signature via `accounts.email.accounts.<name>.signature`, where does it go? I'm trying to set notmuch up to use the signature file, but I can't seem to find it. Thanks!
<aforemny>
heartman: The file goes into Nix store as signature.txt
<heartman>
aforemny: Oh, that's interesting. So unless I use neomutt, the option doesn't really do anything? Would the next best thing be to use home-manager to write arbitrary text files and source them, then? I'm still quite new to home-manager, so I haven't figured it all out yet. Or when you say the file goes in the Nix store, is there a way to find it reliably?
<aforemny>
aforemny: `pkgs.writeText "signature.txt" account.signature.text` should yield the same path for identical input `accounts.signature.text`. So if you duplicate that call, it should not duplicate the file. If you want a persistent location, you could add, say, `home.file."signature.txt".text = config.account.signature.text` to your configuration and it will be in `~/.signature.txt`.
<aforemny>
heartman: Yeah, the option does not do anything unless you use neomutt. If you feel like it, you could add support for that in home-manager for notmuch similarly.
<heartman>
aforemny: Thanks! I'll probably try out the `home.file."signature.txt"` route first. I don't have any experience using signatures in notmuch so I'm not sure how I'd start adding support to it. Maybe one day
<aforemny>
heartman: Yeah, I think that is a good way to get started. Note that `accounts.email.accounts.<name>.signature` may be multiple acconuts. So you will have to get the default account or use different file names for each.
<heartman>
aforemny: Nice! Yeah, I thought about that. If I want to create a directory and write files in it, how would I do that? `home.file."path/file.txt"`?
<aforemny>
heartman: Exactly. Just create the file under `path` and the directory will be created automatically.
<heartman>
aforemny: Cool; thanks!
MmeQuignon has joined #home-manager
__monty__ has joined #home-manager
o1lo01ol1o has quit [Remote host closed the connection]
hexa- has quit [Quit: WeeChat 2.9]
hexa- has joined #home-manager
kenran has joined #home-manager
superherointj has joined #home-manager
heartman has left #home-manager ["ERC (IRC client for Emacs 28.0.50)"]
evanjs has quit [Ping timeout: 276 seconds]
evanjs has joined #home-manager
kenran has quit [Quit: leaving]
cole-h has joined #home-manager
svrana has quit [Quit: WeeChat 2.9]
svrana has joined #home-manager
evanjs has quit [Ping timeout: 245 seconds]
evanjs has joined #home-manager
rajivr has quit [Quit: Connection closed for inactivity]
chisui has quit [Quit: Connection closed]
superherointj_ has joined #home-manager
superherointj has quit [Remote host closed the connection]
nerdypepper has quit [Ping timeout: 256 seconds]
energizer has quit [Ping timeout: 256 seconds]
ornxka has quit [Ping timeout: 256 seconds]
nerdypepper has joined #home-manager
ornxka has joined #home-manager
energizer has joined #home-manager
figgyc has quit [Quit: figgyc]
evanjs has quit [Read error: Connection reset by peer]