From e792555c7d461567a2e08c80161804aba503f814 Mon Sep 17 00:00:00 2001 From: Kate Adkins Date: Sat, 16 Nov 2024 15:05:39 -0700 Subject: [PATCH] aigis:support touch bar --- nixos/hosts/aigis.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/nixos/hosts/aigis.nix b/nixos/hosts/aigis.nix index a814c39..9430099 100644 --- a/nixos/hosts/aigis.nix +++ b/nixos/hosts/aigis.nix @@ -47,6 +47,22 @@ }; }; + systemd.services.display-manager = { + after = [ "touchbar.service" ]; + requires = [ "touchbar.service" ]; + }; + + # Provide touch bar support. + systemd.services.touchbar = { + before = [ "display-manager.service" ]; + wantedBy = [ "graphical-session.target" ]; + + serviceConfig = { + Type = "simple"; + ExecStart = "${pkgs.tiny-dfr}/bin/tiny-dfr"; + }; + }; + # Be able to run x64 binaries, because they're everywhere. boot.binfmt.emulatedSystems = [ "x86_64-linux"