fixup ghostty service
This commit is contained in:
parent
e6761cbae5
commit
7f9f2b4fc0
2 changed files with 25 additions and 6 deletions
30
maid.nix
30
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";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@
|
|||
hardware.bluetooth = {
|
||||
enable = true;
|
||||
powerOnBoot = false;
|
||||
input.General.ClassicBondedOnly = false;
|
||||
settings = {
|
||||
General = {
|
||||
Experimental = true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue