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 = {
|
gsettings.settings = {
|
||||||
org.gnome.desktop.interface = {
|
org.gnome.desktop.interface = {
|
||||||
color-scheme = "prefer-dark";
|
color-scheme = "prefer-dark";
|
||||||
|
|
@ -9,8 +16,21 @@
|
||||||
cursor-size = 24;
|
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";
|
description = "Ghostty";
|
||||||
|
enableDefaultPath = false;
|
||||||
after = [
|
after = [
|
||||||
"graphical-session.target"
|
"graphical-session.target"
|
||||||
"dbus.socket"
|
"dbus.socket"
|
||||||
|
|
@ -18,8 +38,8 @@
|
||||||
requires = [ "dbus.socket" ];
|
requires = [ "dbus.socket" ];
|
||||||
wantedBy = [ config.maid.systemdGraphicalTarget ];
|
wantedBy = [ config.maid.systemdGraphicalTarget ];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "notify-reload"; # reload waits for ghostty to sd_notify READY=1
|
Type = "notify"; # reload waits for ghostty to sd_notify READY=1
|
||||||
ReloadSignal = "SIGUSR2"; # ghostty's config-reload signal (default is SIGHUP)
|
ExecReload = "${pkgs.coreutils}/bin/kill -USR2 $MAINPID";
|
||||||
BusName = "com.mitchellh.ghostty";
|
BusName = "com.mitchellh.ghostty";
|
||||||
ExecStart = "${pkgs.ghostty}/bin/ghostty --gtk-single-instance=true --initial-window=false";
|
ExecStart = "${pkgs.ghostty}/bin/ghostty --gtk-single-instance=true --initial-window=false";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,6 @@
|
||||||
hardware.bluetooth = {
|
hardware.bluetooth = {
|
||||||
enable = true;
|
enable = true;
|
||||||
powerOnBoot = false;
|
powerOnBoot = false;
|
||||||
input.General.ClassicBondedOnly = false;
|
|
||||||
settings = {
|
settings = {
|
||||||
General = {
|
General = {
|
||||||
Experimental = true;
|
Experimental = true;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue