From e06d38ae5426d9615f74f749836b602d4a64ab14 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Tue, 29 Aug 2023 17:24:57 +0300 Subject: chore(tazjin/khamovnik): load private Emacs config automatically Change-Id: I26374733c35c2165363eaae45f56ba1e9facfe99 Reviewed-on: https://cl.tvl.fyi/c/depot/+/9167 Tested-by: BuildkiteCI Autosubmit: tazjin Reviewed-by: tazjin --- users/tazjin/nixos/khamovnik/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'users') 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 = { -- cgit 1.4.1