about summary refs log tree commit diff
path: root/users/tazjin/nixos
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@tvl.su>2023-08-29T14·24+0300
committertazjin <tazjin@tvl.su>2023-08-29T15·14+0000
commite06d38ae5426d9615f74f749836b602d4a64ab14 (patch)
tree7916ee7651b62d9340b8b975b47f5e3492014cb6 /users/tazjin/nixos
parentd4c8840c575c32247abfc035efb5d2e3830678c1 (diff)
chore(tazjin/khamovnik): load private Emacs config automatically r/6538
Change-Id: I26374733c35c2165363eaae45f56ba1e9facfe99
Reviewed-on: https://cl.tvl.fyi/c/depot/+/9167
Tested-by: BuildkiteCI
Autosubmit: tazjin <tazjin@tvl.su>
Reviewed-by: tazjin <tazjin@tvl.su>
Diffstat (limited to 'users/tazjin/nixos')
-rw-r--r--users/tazjin/nixos/khamovnik/default.nix7
1 files changed, 5 insertions, 2 deletions
diff --git a/users/tazjin/nixos/khamovnik/default.nix b/users/tazjin/nixos/khamovnik/default.nix
index 5c1d1f661424..ca214876cc28 100644
--- a/users/tazjin/nixos/khamovnik/default.nix
+++ b/users/tazjin/nixos/khamovnik/default.nix
@@ -7,7 +7,7 @@ config:
 let
   mod = name: depot.path.origSrc + ("/ops/modules/" + name);
   usermod = name: depot.path.origSrc + ("/users/tazjin/nixos/modules/" + name);
-  private = /arc/junk/tazjin/nixos/yandex.nix;
+  private = /arc/junk/tazjin;
 
   zdevice = device: {
     inherit device;
@@ -23,7 +23,10 @@ in
     (usermod "laptop.nix")
     (usermod "physical.nix")
     (pkgs.home-manager.src + "/nixos")
-  ] ++ lib.optional (builtins.pathExists private) private;
+  ] ++ (if (builtins.pathExists private) then [
+    (private + "/nixos/yandex.nix")
+    (private + "/emacs/module.nix")
+  ] else [ ]);
 
   # from hardware-configuration.nix
   boot = {