refactor(tazjin/nixos): pick correct Emacs from a NixOS option

This gives me the ability to override the Emacs per-machine easily.

Change-Id: Id480889c108833b0a11c377a9b1e946900c5aba1
Reviewed-on: https://cl.tvl.fyi/c/depot/+/9166
Reviewed-by: tazjin <tazjin@tvl.su>
Autosubmit: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
This commit is contained in:
Vincent Ambo 2023-08-29 17:10:11 +03:00 committed by tazjin
parent 804b7fbe73
commit d4c8840c57
2 changed files with 93 additions and 81 deletions

View file

@ -1,5 +1,5 @@
# EXWM and other desktop configuration.
{ depot, lib, pkgs, ... }:
{ config, depot, lib, pkgs, ... }:
{
services = {
@ -29,7 +29,7 @@
windowManager.session = lib.singleton {
name = "exwm";
start = "${depot.users.tazjin.emacs}/bin/tazjins-emacs";
start = "${config.tazjin.emacs}/bin/tazjins-emacs";
};
};
};