about summary refs log tree commit diff
path: root/ops/nixos/nugget
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2020-03-12T23·49+0000
committerVincent Ambo <tazjin@google.com>2020-03-12T23·49+0000
commit576f190972224044397128df91a72a07180461e4 (patch)
tree6cad59e6fde4302bbf8ffa971edb837be5d72698 /ops/nixos/nugget
parent080c3591ca64163d454520aaa1a9c4177170d83d (diff)
fix(ops/nixos/nugget): Ensure that 'nuggetEmacs' is used for EXWM r/602
Diffstat (limited to 'ops/nixos/nugget')
-rw-r--r--ops/nixos/nugget/default.nix15
1 files changed, 8 insertions, 7 deletions
diff --git a/ops/nixos/nugget/default.nix b/ops/nixos/nugget/default.nix
index 8b9793f92336..7f6e11678330 100644
--- a/ops/nixos/nugget/default.nix
+++ b/ops/nixos/nugget/default.nix
@@ -7,6 +7,12 @@ config: let
   };
 
   lieer = (depot.third_party.lieer {});
+
+  # google-c-style is installed only on nugget because other
+  # machines get it from, eh, elsewhere.
+  nuggetEmacs = (depot.tools.emacs.overrideEmacs(epkgs: epkgs ++ [
+    depot.third_party.emacsPackages.google-c-style
+  ]));
 in depot.lib.fix(self: {
   imports = [
     ../modules/tailscale.nix
@@ -91,15 +97,10 @@ in depot.lib.fix(self: {
     # programs from the depot
     (with depot; [
       lieer
+      nuggetEmacs
       ops.kontemplate
       third_party.git
       third_party.tailscale
-
-      # google-c-style is installed only on nugget because other
-      # machines get it from, eh, elsewhere.
-      (tools.emacs.overrideEmacs(epkgs: epkgs ++ [
-        third_party.emacsPackages.google-c-style
-      ]))
     ]) ++
 
     # programs from nixpkgs
@@ -222,7 +223,7 @@ in depot.lib.fix(self: {
 
       windowManager.session = lib.singleton {
         name = "exwm";
-        start = "${depot.tools.emacs}/bin/tazjins-emacs";
+        start = "${nuggetEmacs}/bin/tazjins-emacs";
       };
     };