Commit e4bb3a05f8ae

Vincent Demeester <vincent@sbr.pm>
2018-08-29 10:05:25
Try to fix it (at least it does not fail anymore…)
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 83d5841
Changed files (1)
emacs.nix
@@ -7,8 +7,9 @@
       Description = "Emacs: the extensible, self-documenting text editor";
     };
     Service = {
-      Environment = "PATH=/home/vincent/bin:/home/vincent/.local/npm/bin:/run/wrappers/bin:/etc/profiles/per-user/vincent/bin:${config.home.profileDirectory}/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin";
-      Environment = "ASPELL_CONF=dict-dir /home/vincent/.nix-profile/lib/aspell";
+      Environment = ''
+        PATH=/home/vincent/bin:/home/vincent/.local/npm/bin:/run/wrappers/bin:/etc/profiles/per-user/vincent/bin:${config.home.profileDirectory}/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin ASPELL_CONF=dict-dir=/home/vincent/.nix-profile/lib/aspell
+      '';
       Type      = "forking";
       ExecStart = "/home/vincent/.nix-profile/bin/emacs --daemon";
       ExecStop  = "/home/vincent/.nix-profile/bin/emacsclient --eval (kill-emacs)";
@@ -23,8 +24,9 @@
       Description = "Emacs: the extensible, self-documenting text editor";
     };
     Service = {
-      Environment = "PATH=/home/vincent/bin:/home/vincent/.local/npm/bin:/run/wrappers/bin:/etc/profiles/per-user/vincent/bin:${config.home.profileDirectory}/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin";
-      Environment = "ASPELL_CONF=dict-dir /home/vincent/.nix-profile/lib/aspell";
+      Environment = ''
+        PATH=/home/vincent/bin:/home/vincent/.local/npm/bin:/run/wrappers/bin:/etc/profiles/per-user/vincent/bin:${config.home.profileDirectory}/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin ASPELL_CONF=dict-dir=/home/vincent/.nix-profile/lib/aspell
+      '';
       Type      = "forking";
       ExecStart = "/home/vincent/.nix-profile/bin/emacs --daemon=org";
       ExecStop  = "/home/vincent/.nix-profile/bin/emacsclient --socket-name=org --eval (kill-emacs)";