From 7f9f2b4fc07711f74b09ad53791854244dd5dbdb Mon Sep 17 00:00:00 2001 From: lucy Date: Wed, 14 Oct 2026 15:44:18 +0200 Subject: [PATCH] fixup ghostty service --- maid.nix | 30 +++++++++++++++++++++++++----- modules/hardware/bluetooth.nix | 1 - 2 files changed, 25 insertions(+), 6 deletions(-) diff --git a/maid.nix b/maid.nix index 183cc2c..e2fd93b 100755 --- a/maid.nix +++ b/maid.nix @@ -1,5 +1,12 @@ -{ pkgs, config, lib, inputs, ... }: { - users.users.lucy.maid = { +{ + pkgs, + config, + lib, + inputs, + ... +}: +{ + users.users.lucy.maid = { config, ... }: { gsettings.settings = { org.gnome.desktop.interface = { color-scheme = "prefer-dark"; @@ -9,8 +16,21 @@ cursor-size = 24; }; }; - systemd.services.ghostty = { + systemd.globalEnvironment.PATH = lib.concatStringsSep ":" [ + "%h/.local/bin" + "/etc/profiles/per-user/lucy/bin" # your users.users.lucy.packages + maid bundle + "/run/current-system/sw/bin" + "/nix/var/nix/profiles/default/bin" + "/usr/local/bin" + "/usr/bin" + "/bin" + "/usr/sbin" + "/sbin" + ]; + + systemd.services."app-com.mitchellh.ghostty" = { description = "Ghostty"; + enableDefaultPath = false; after = [ "graphical-session.target" "dbus.socket" @@ -18,8 +38,8 @@ requires = [ "dbus.socket" ]; wantedBy = [ config.maid.systemdGraphicalTarget ]; serviceConfig = { - Type = "notify-reload"; # reload waits for ghostty to sd_notify READY=1 - ReloadSignal = "SIGUSR2"; # ghostty's config-reload signal (default is SIGHUP) + Type = "notify"; # reload waits for ghostty to sd_notify READY=1 + ExecReload = "${pkgs.coreutils}/bin/kill -USR2 $MAINPID"; BusName = "com.mitchellh.ghostty"; ExecStart = "${pkgs.ghostty}/bin/ghostty --gtk-single-instance=true --initial-window=false"; }; diff --git a/modules/hardware/bluetooth.nix b/modules/hardware/bluetooth.nix index 5b22ad4..1013091 100644 --- a/modules/hardware/bluetooth.nix +++ b/modules/hardware/bluetooth.nix @@ -2,7 +2,6 @@ hardware.bluetooth = { enable = true; powerOnBoot = false; - input.General.ClassicBondedOnly = false; settings = { General = { Experimental = true;