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"