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 <tazjin@tvl.su>
Reviewed-by: tazjin <tazjin@tvl.su>
This commit is contained in:
Vincent Ambo 2023-08-29 17:24:57 +03:00 committed by tazjin
parent d4c8840c57
commit e06d38ae54

View file

@ -7,7 +7,7 @@ config:
let let
mod = name: depot.path.origSrc + ("/ops/modules/" + name); mod = name: depot.path.origSrc + ("/ops/modules/" + name);
usermod = name: depot.path.origSrc + ("/users/tazjin/nixos/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: { zdevice = device: {
inherit device; inherit device;
@ -23,7 +23,10 @@ in
(usermod "laptop.nix") (usermod "laptop.nix")
(usermod "physical.nix") (usermod "physical.nix")
(pkgs.home-manager.src + "/nixos") (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 # from hardware-configuration.nix
boot = { boot = {