From e6761cbae5655f22a4c8c24a2f2097d9b8f54c8d Mon Sep 17 00:00:00 2001 From: lucy Date: Wed, 14 Oct 2026 14:57:49 +0200 Subject: [PATCH] add ghostty service --- configuration.nix | 1 + maid.nix | 19 +++++++++++++++++-- modules/programs/default.nix | 1 - 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/configuration.nix b/configuration.nix index e73a3a7..1b4babb 100755 --- a/configuration.nix +++ b/configuration.nix @@ -85,6 +85,7 @@ jq nmgui kdePackages.qtdeclarative + ghostty ]; }; environment.sessionVariables = { diff --git a/maid.nix b/maid.nix index f28b690..183cc2c 100755 --- a/maid.nix +++ b/maid.nix @@ -1,13 +1,28 @@ -{ pkgs, ... }: { +{ pkgs, config, lib, inputs, ... }: { users.users.lucy.maid = { gsettings.settings = { org.gnome.desktop.interface = { - color-scheme = "prefer-dark"; + color-scheme = "prefer-dark"; gtk-theme = "adw-gtk3"; cursor-theme = "macOS"; icon-theme = "Papirus"; cursor-size = 24; }; }; + systemd.services.ghostty = { + description = "Ghostty"; + after = [ + "graphical-session.target" + "dbus.socket" + ]; + 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) + BusName = "com.mitchellh.ghostty"; + ExecStart = "${pkgs.ghostty}/bin/ghostty --gtk-single-instance=true --initial-window=false"; + }; + }; }; } diff --git a/modules/programs/default.nix b/modules/programs/default.nix index 3d32f22..79703d1 100644 --- a/modules/programs/default.nix +++ b/modules/programs/default.nix @@ -6,6 +6,5 @@ ./zsh.nix ./nixcord.nix ./chromium.nix - ./ghostty.nix ]; }