48 lines
1.3 KiB
Nix
Executable file
48 lines
1.3 KiB
Nix
Executable file
{
|
|
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.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"
|
|
];
|
|
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";
|
|
};
|
|
};
|
|
};
|
|
}
|