move maid modules to own dir

This commit is contained in:
lucy 2026-10-15 11:29:42 +02:00
commit 2e877e0a86
3 changed files with 47 additions and 0 deletions

5
modules/maid/default.nix Normal file
View file

@ -0,0 +1,5 @@
{
imports = [
./maid.nix
];
}

6
modules/maid/ghostty.nix Normal file
View file

@ -0,0 +1,6 @@
{
programs.ghostty = {
enable = true;
systemd.enable = true;
};
}

36
modules/maid/maid.nix Executable file
View file

@ -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";
};
};
};
}