From 940450057cdcd689eae9ca656a36ac9d276d1f4e Mon Sep 17 00:00:00 2001 From: Alexander Bantyev Date: Tue, 12 May 2020 15:18:18 +0300 Subject: [PATCH] accountrc --- modules/applications/sylpheed.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/modules/applications/sylpheed.nix b/modules/applications/sylpheed.nix index 7ba6d15..b00b539 100644 --- a/modules/applications/sylpheed.nix +++ b/modules/applications/sylpheed.nix @@ -6,7 +6,16 @@ command = "${pkgs.sylpheed}/bin/sylpheed"; } ]; - home.file.".sylpheed-2.0/accountrc".text = '' + home.activation."accountrc" = { + data = '' + $DRY_RUN_CMD rm -f ~/.sylpheed-2.0/accountrc + $DRY_RUN_CMD cp ~/.sylpheed-2.0/accountrc.home ~/.sylpheed-2.0/accountrc + $DRY_RUN_CMD chmod 700 ~/.sylpheed-2.0/accountrc + ''; + before = [ ]; + after = [ "linkGeneration" ]; + }; + home.file.".sylpheed-2.0/accountrc.home".text = '' [Account: 1] account_name=balsoft@balsoft.ru is_default=1