diff options
author | Azat Bahawi <azat@bahawi.net> | 2023-02-20 02:05:59 +0300 |
---|---|---|
committer | Azat Bahawi <azat@bahawi.net> | 2023-02-20 02:05:59 +0300 |
commit | e40f7d991353ad70984afdf67b25c049190c56bd (patch) | |
tree | 295a80114cca78952ed6ed562198d997b496faba /modules/nixos/emacs.nix | |
parent | 2023-02-19 (diff) |
2023-02-20
Diffstat (limited to '')
-rw-r--r-- | modules/nixos/emacs.nix | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/modules/nixos/emacs.nix b/modules/nixos/emacs.nix index e348398..82c2f6e 100644 --- a/modules/nixos/emacs.nix +++ b/modules/nixos/emacs.nix @@ -1,6 +1,5 @@ { config, - inputs, lib, ... }: @@ -8,23 +7,11 @@ with lib; let cfg = config.nixfiles.modules.emacs; in { config = mkIf cfg.enable { - secrets.authinfo = { - file = "${inputs.self}/secrets/authinfo"; - owner = my.username; - inherit (config.my) group; - }; - nixfiles.modules.x11.enable = true; - hm = { - programs.emacs.extraConfig = mkAfter '' - (appendq! auth-sources '("${config.secrets.authinfo.path}")) - ''; - - services.emacs = { - enable = true; - client.enable = true; - }; + hm.services.emacs = { + enable = true; + client.enable = true; }; }; } |