summaryrefslogtreecommitdiff
path: root/home/config/emacs.nix
diff options
context:
space:
mode:
authorQuentin Aristote <quentin@aristote.fr>2023-02-28 17:50:16 +0100
committerQuentin Aristote <quentin@aristote.fr>2023-02-28 17:50:16 +0100
commit52c53ee7055cd5876112543c28ff6b5626a99313 (patch)
tree6fe6815fda0e81bf00013ffcad4db6e115b933a6 /home/config/emacs.nix
parent1f349513ad5079e9f07ea524fd7039261e942ba4 (diff)
parentb0214d50e9a728d77d98d791e92dfe3747f27e23 (diff)
Merge branch 'flake-home-manager' into flake
Diffstat (limited to 'home/config/emacs.nix')
-rw-r--r--home/config/emacs.nix51
1 files changed, 0 insertions, 51 deletions
diff --git a/home/config/emacs.nix b/home/config/emacs.nix
deleted file mode 100644
index 50fd213..0000000
--- a/home/config/emacs.nix
+++ /dev/null
@@ -1,51 +0,0 @@
-{ config, lib, pkgs, ... }:
-
-let
- cfg = config.programs.emacs;
- spacemacs-update-script = pkgs.callPackage ({ emacs, git }:
- pkgs.writeShellApplication {
- name = "spacemacs-update";
-
- runtimeInputs = [ emacs git ];
-
- text = ''
- git checkout develop
- git pull
- git checkout local
- git merge develop
- emacsclient --eval '(configuration-layer/update-packages "no-confirmation")'
- '';
- }) { emacs = cfg.package; };
-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" ]; };
- });
-}