From 2e877e0a867f78dda54573f2d6e0d7c6a213c833 Mon Sep 17 00:00:00 2001 From: lucy Date: Thu, 15 Oct 2026 11:29:42 +0200 Subject: [PATCH] move maid modules to own dir --- modules/maid/default.nix | 5 +++++ modules/maid/ghostty.nix | 6 ++++++ modules/maid/maid.nix | 36 ++++++++++++++++++++++++++++++++++++ 3 files changed, 47 insertions(+) create mode 100644 modules/maid/default.nix create mode 100644 modules/maid/ghostty.nix create mode 100755 modules/maid/maid.nix diff --git a/modules/maid/default.nix b/modules/maid/default.nix new file mode 100644 index 0000000..eaf527c --- /dev/null +++ b/modules/maid/default.nix @@ -0,0 +1,5 @@ +{ + imports = [ + ./maid.nix + ]; +} diff --git a/modules/maid/ghostty.nix b/modules/maid/ghostty.nix new file mode 100644 index 0000000..28ca2aa --- /dev/null +++ b/modules/maid/ghostty.nix @@ -0,0 +1,6 @@ +{ + programs.ghostty = { + enable = true; + systemd.enable = true; + }; +} diff --git a/modules/maid/maid.nix b/modules/maid/maid.nix new file mode 100755 index 0000000..49575bd --- /dev/null +++ b/modules/maid/maid.nix @@ -0,0 +1,36 @@ +{ + pkgs, + config, + lib, + inputs, + ... +}: +{ + users.users.lucy.maid = { config, ... }: { + gsettings.settings = { + org.gnome.desktop.interface = { + color-scheme = "prefer-dark"; + gtk-theme = "adw-gtk3"; + cursor-theme = "macOS"; + icon-theme = "Papirus"; + cursor-size = 24; + }; + }; + systemd.services."app-com.mitchellh.ghostty" = { + description = "Ghostty"; + enableDefaultPath = false; + after = [ + "graphical-session.target" + "dbus.socket" + ]; + requires = [ "dbus.socket" ]; + wantedBy = [ config.maid.systemdGraphicalTarget ]; + serviceConfig = { + 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"; + }; + }; + }; +}