home: offlineimap: specify secrets using the sane.programs API
This commit is contained in:
parent
dd99e66fb5
commit
3226615885
|
@ -4,14 +4,9 @@
|
||||||
# - `offlineimap -a <accountname>`
|
# - `offlineimap -a <accountname>`
|
||||||
#
|
#
|
||||||
# view account names inside the secrets file, listed below.
|
# view account names inside the secrets file, listed below.
|
||||||
{ config, sane-lib, ... }:
|
{ ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
sops.secrets."offlineimaprc" = {
|
sane.programs.offlineimap.secrets.".config/offlineimap/config" = ../../../secrets/universal/offlineimaprc.bin;
|
||||||
owner = config.users.users.colin.name;
|
|
||||||
sopsFile = ../../../secrets/universal/offlineimaprc.bin;
|
|
||||||
format = "binary";
|
|
||||||
};
|
|
||||||
sane.programs.offlineimap.fs.".config/offlineimap/config" = sane-lib.fs.wantedSymlinkTo config.sops.secrets.offlineimaprc.path;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user