mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-12 01:59:37 +08:00
Stopping or restarting the service will destroy open Ghostty sessions, potentially disrupting work. This change ensures that we leave the existing service untouched. Fixes #8485
22 lines
460 B
Nix
22 lines
460 B
Nix
{ config, ... }:
|
|
{
|
|
programs.ghostty = {
|
|
enable = true;
|
|
package = config.lib.test.mkStubPackage { outPath = null; };
|
|
|
|
settings = {
|
|
theme = "catppuccin-mocha";
|
|
font-size = 10;
|
|
};
|
|
};
|
|
|
|
nmt.script = ''
|
|
servicePath=home-files/.config/systemd/user/app-com.mitchellh.ghostty.service
|
|
assertPathNotExists $servicePath
|
|
|
|
assertFileContent \
|
|
home-files/.config/ghostty/config \
|
|
${./example-config-expected}
|
|
'';
|
|
}
|