diff options
Diffstat (limited to 'home/config/emacs.nix')
| -rw-r--r-- | home/config/emacs.nix | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/home/config/emacs.nix b/home/config/emacs.nix deleted file mode 100644 index 4bb1143..0000000 --- a/home/config/emacs.nix +++ /dev/null @@ -1,43 +0,0 @@ -{ config, lib, pkgs, ... }: - -let - cfg = config.programs.emacs; - spacemacs-update-script = pkgs.writeShellScript "spacemacs-update" '' - ${pkgs.git}/bin/git pull - ${cfg.package}/bin/emacsclient --eval '(configuration-layer/update-packages "no-confirmation")' - ''; -in { - programs.emacs = { - enable = true; - package = - pkgs.emacsWithPackages (ep: with ep; [ emacsql-sqlite emacsql-sqlite3 ]); - }; - services.emacs = { - enable = true; - client.enable = true; - }; - - home.packages = with pkgs; [ gnutar ]; - - home.file.".spacemacs.d/init.el".source = ./dotfiles/spacemacs; - - systemd.user = lib.mkIf cfg.enable - (pkgs.personal.lib.serviceWithTimer "spacemacs-update" { - Unit = { - Description = "Update Spacemacs by pulling the develop branch"; - After = [ "network-online.target" "emacs.service" ]; - }; - Service = { - Type = "oneshot"; - WorkingDirectory = "${config.home.homeDirectory}/.emacs.d/"; - ExecStart = "${spacemacs-update-script}"; - }; - Timer = { - Persistent = true; - OnCalendar = "daily"; - }; - Install = { - WantedBy = [ "default.target" ]; - }; - }); -} |
