about summary refs log tree commit diff
path: root/ops/nixos/nugget
diff options
context:
space:
mode:
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";
       };
     };