diff options
| author | Can Celik <ogulcancelik@gmail.com> | 2026-04-04 19:22:04 +0300 |
|---|---|---|
| committer | Can Celik <ogulcancelik@gmail.com> | 2026-04-05 01:23:06 +0300 |
| commit | 41dd733ca7123c9ac4bfc6c781697a660e95b052 (patch) | |
| tree | 3fc91815ca139ef2e0b281bba0abda4ef15175f4 /vendor/libghostty-vt/nix/vm | |
| parent | 55c138263e190a1e79d4b997bfb9397306c0ec1f (diff) | |
feat: finish ghostty pane backend integration
Diffstat (limited to 'vendor/libghostty-vt/nix/vm')
| -rw-r--r-- | vendor/libghostty-vt/nix/vm/common-cinnamon.nix | 18 | ||||
| -rw-r--r-- | vendor/libghostty-vt/nix/vm/common-gnome.nix | 149 | ||||
| -rw-r--r-- | vendor/libghostty-vt/nix/vm/common-plasma6.nix | 21 | ||||
| -rw-r--r-- | vendor/libghostty-vt/nix/vm/common-xfce.nix | 18 | ||||
| -rw-r--r-- | vendor/libghostty-vt/nix/vm/common.nix | 75 | ||||
| -rw-r--r-- | vendor/libghostty-vt/nix/vm/create-cinnamon.nix | 12 | ||||
| -rw-r--r-- | vendor/libghostty-vt/nix/vm/create-gnome.nix | 12 | ||||
| -rw-r--r-- | vendor/libghostty-vt/nix/vm/create-plasma6.nix | 12 | ||||
| -rw-r--r-- | vendor/libghostty-vt/nix/vm/create-xfce.nix | 12 | ||||
| -rw-r--r-- | vendor/libghostty-vt/nix/vm/create.nix | 42 | ||||
| -rw-r--r-- | vendor/libghostty-vt/nix/vm/wayland-cinnamon.nix | 7 | ||||
| -rw-r--r-- | vendor/libghostty-vt/nix/vm/wayland-gnome.nix | 9 | ||||
| -rw-r--r-- | vendor/libghostty-vt/nix/vm/wayland-plasma6.nix | 6 | ||||
| -rw-r--r-- | vendor/libghostty-vt/nix/vm/x11-cinnamon.nix | 7 | ||||
| -rw-r--r-- | vendor/libghostty-vt/nix/vm/x11-plasma6.nix | 6 | ||||
| -rw-r--r-- | vendor/libghostty-vt/nix/vm/x11-xfce.nix | 7 |
16 files changed, 413 insertions, 0 deletions
diff --git a/vendor/libghostty-vt/nix/vm/common-cinnamon.nix b/vendor/libghostty-vt/nix/vm/common-cinnamon.nix new file mode 100644 index 00000000..dabe5e70 --- /dev/null +++ b/vendor/libghostty-vt/nix/vm/common-cinnamon.nix @@ -0,0 +1,18 @@ +{...}: { + imports = [ + ./common.nix + ]; + + services.xserver = { + displayManager = { + lightdm = { + enable = true; + }; + }; + desktopManager = { + cinnamon = { + enable = true; + }; + }; + }; +} diff --git a/vendor/libghostty-vt/nix/vm/common-gnome.nix b/vendor/libghostty-vt/nix/vm/common-gnome.nix new file mode 100644 index 00000000..d8d48407 --- /dev/null +++ b/vendor/libghostty-vt/nix/vm/common-gnome.nix @@ -0,0 +1,149 @@ +{ + config, + lib, + pkgs, + ... +}: { + imports = [ + ./common.nix + ]; + + services = { + displayManager = { + gdm = { + enable = true; + autoSuspend = false; + }; + }; + desktopManager = { + gnome = { + enable = true; + }; + }; + }; + + systemd.user.services = { + "org.gnome.Shell@wayland" = { + serviceConfig = { + ExecStart = [ + # Clear the list before overriding it. + "" + # Eval API is now internal so Shell needs to run in unsafe mode. + "${pkgs.gnome-shell}/bin/gnome-shell --unsafe-mode" + ]; + }; + }; + }; + + environment.systemPackages = [ + pkgs.gnomeExtensions.no-overview + ]; + + environment.gnome.excludePackages = with pkgs; [ + atomix + baobab + cheese + epiphany + evince + file-roller + geary + gnome-backgrounds + gnome-calculator + gnome-calendar + gnome-clocks + gnome-connections + gnome-contacts + gnome-disk-utility + gnome-extension-manager + gnome-logs + gnome-maps + gnome-music + gnome-photos + gnome-software + gnome-system-monitor + gnome-text-editor + gnome-themes-extra + gnome-tour + gnome-user-docs + gnome-weather + hitori + iagno + loupe + nautilus + orca + seahorse + simple-scan + snapshot + sushi + tali + totem + yelp + ]; + + programs.dconf = { + enable = true; + profiles.user.databases = [ + { + settings = with lib.gvariant; { + "org/gnome/desktop/background" = { + picture-uri = "file://${pkgs.ghostty}/share/icons/hicolor/512x512/apps/com.mitchellh.ghostty.png"; + picture-uri-dark = "file://${pkgs.ghostty}/share/icons/hicolor/512x512/apps/com.mitchellh.ghostty.png"; + picture-options = "centered"; + primary-color = "#000000000000"; + secondary-color = "#000000000000"; + }; + "org/gnome/desktop/interface" = { + color-scheme = "prefer-dark"; + }; + "org/gnome/desktop/notifications" = { + show-in-lock-screen = false; + }; + "org/gnome/desktop/screensaver" = { + lock-enabled = false; + picture-uri = "file://${pkgs.ghostty}/share/icons/hicolor/512x512/apps/com.mitchellh.ghostty.png"; + picture-options = "centered"; + primary-color = "#000000000000"; + secondary-color = "#000000000000"; + }; + "org/gnome/desktop/session" = { + idle-delay = mkUint32 0; + }; + "org/gnome/shell" = { + disable-user-extensions = false; + enabled-extensions = builtins.map (x: x.extensionUuid) ( + lib.filter (p: p ? extensionUuid) config.environment.systemPackages + ); + }; + }; + } + ]; + }; + + programs.geary.enable = false; + + services.gnome = { + gnome-browser-connector.enable = false; + gnome-initial-setup.enable = false; + gnome-online-accounts.enable = false; + gnome-remote-desktop.enable = false; + rygel.enable = false; + }; + + system.activationScripts = { + face = { + text = '' + mkdir -p /var/lib/AccountsService/{icons,users} + + cp ${pkgs.ghostty}/share/icons/hicolor/1024x1024/apps/com.mitchellh.ghostty.png /var/lib/AccountsService/icons/ghostty + + echo -e "[User]\nIcon=/var/lib/AccountsService/icons/ghostty\n" > /var/lib/AccountsService/users/ghostty + + chown root:root /var/lib/AccountsService/users/ghostty + chmod 0600 /var/lib/AccountsService/users/ghostty + + chown root:root /var/lib/AccountsService/icons/ghostty + chmod 0444 /var/lib/AccountsService/icons/ghostty + ''; + }; + }; +} diff --git a/vendor/libghostty-vt/nix/vm/common-plasma6.nix b/vendor/libghostty-vt/nix/vm/common-plasma6.nix new file mode 100644 index 00000000..e5c9bd4d --- /dev/null +++ b/vendor/libghostty-vt/nix/vm/common-plasma6.nix @@ -0,0 +1,21 @@ +{...}: { + imports = [ + ./common.nix + ]; + + services = { + displayManager = { + sddm = { + enable = true; + wayland = { + enable = true; + }; + }; + }; + desktopManager = { + plasma6 = { + enable = true; + }; + }; + }; +} diff --git a/vendor/libghostty-vt/nix/vm/common-xfce.nix b/vendor/libghostty-vt/nix/vm/common-xfce.nix new file mode 100644 index 00000000..12a20d8d --- /dev/null +++ b/vendor/libghostty-vt/nix/vm/common-xfce.nix @@ -0,0 +1,18 @@ +{...}: { + imports = [ + ./common.nix + ]; + + services.xserver = { + displayManager = { + lightdm = { + enable = true; + }; + }; + desktopManager = { + xfce = { + enable = true; + }; + }; + }; +} diff --git a/vendor/libghostty-vt/nix/vm/common.nix b/vendor/libghostty-vt/nix/vm/common.nix new file mode 100644 index 00000000..b2fec28e --- /dev/null +++ b/vendor/libghostty-vt/nix/vm/common.nix @@ -0,0 +1,75 @@ +{pkgs, ...}: { + boot.loader.systemd-boot.enable = true; + boot.loader.efi.canTouchEfiVariables = true; + + documentation.nixos.enable = false; + + virtualisation.vmVariant = { + virtualisation.memorySize = 2048; + }; + + nix = { + settings = { + trusted-users = [ + "root" + "ghostty" + ]; + }; + extraOptions = '' + experimental-features = nix-command flakes + ''; + }; + + users.mutableUsers = false; + + users.groups.ghostty = {}; + + users.users.ghostty = { + isNormalUser = true; + description = "Ghostty"; + group = "ghostty"; + extraGroups = ["wheel"]; + hashedPassword = ""; + }; + + environment.systemPackages = [ + pkgs.kitty + pkgs.fish + pkgs.ghostty + pkgs.helix + pkgs.neovim + pkgs.xterm + pkgs.zsh + ]; + + security.polkit = { + enable = true; + }; + + services.dbus = { + enable = true; + }; + + services.displayManager = { + autoLogin = { + enable = true; + user = "ghostty"; + }; + }; + + services.libinput = { + enable = true; + }; + + services.qemuGuest = { + enable = true; + }; + + services.spice-vdagentd = { + enable = true; + }; + + services.xserver = { + enable = true; + }; +} diff --git a/vendor/libghostty-vt/nix/vm/create-cinnamon.nix b/vendor/libghostty-vt/nix/vm/create-cinnamon.nix new file mode 100644 index 00000000..a9d9e44d --- /dev/null +++ b/vendor/libghostty-vt/nix/vm/create-cinnamon.nix @@ -0,0 +1,12 @@ +{ + system, + nixpkgs, + overlay, + module, + uid ? 1000, + gid ? 1000, +}: +import ./create.nix { + inherit system nixpkgs overlay module uid gid; + common = ./common-cinnamon.nix; +} diff --git a/vendor/libghostty-vt/nix/vm/create-gnome.nix b/vendor/libghostty-vt/nix/vm/create-gnome.nix new file mode 100644 index 00000000..bcd31f2b --- /dev/null +++ b/vendor/libghostty-vt/nix/vm/create-gnome.nix @@ -0,0 +1,12 @@ +{ + system, + nixpkgs, + overlay, + module, + uid ? 1000, + gid ? 1000, +}: +import ./create.nix { + inherit system nixpkgs overlay module uid gid; + common = ./common-gnome.nix; +} diff --git a/vendor/libghostty-vt/nix/vm/create-plasma6.nix b/vendor/libghostty-vt/nix/vm/create-plasma6.nix new file mode 100644 index 00000000..ede5371f --- /dev/null +++ b/vendor/libghostty-vt/nix/vm/create-plasma6.nix @@ -0,0 +1,12 @@ +{ + system, + nixpkgs, + overlay, + module, + uid ? 1000, + gid ? 1000, +}: +import ./create.nix { + inherit system nixpkgs overlay module uid gid; + common = ./common-plasma6.nix; +} diff --git a/vendor/libghostty-vt/nix/vm/create-xfce.nix b/vendor/libghostty-vt/nix/vm/create-xfce.nix new file mode 100644 index 00000000..d1789472 --- /dev/null +++ b/vendor/libghostty-vt/nix/vm/create-xfce.nix @@ -0,0 +1,12 @@ +{ + system, + nixpkgs, + overlay, + module, + uid ? 1000, + gid ? 1000, +}: +import ./create.nix { + inherit system nixpkgs overlay module uid gid; + common = ./common-xfce.nix; +} diff --git a/vendor/libghostty-vt/nix/vm/create.nix b/vendor/libghostty-vt/nix/vm/create.nix new file mode 100644 index 00000000..f8fe8500 --- /dev/null +++ b/vendor/libghostty-vt/nix/vm/create.nix @@ -0,0 +1,42 @@ +{ + system, + nixpkgs, + overlay, + module, + common ? ./common.nix, + uid ? 1000, + gid ? 1000, +}: let + pkgs = import nixpkgs { + inherit system; + overlays = [ + overlay + ]; + }; +in + nixpkgs.lib.nixosSystem { + system = builtins.replaceStrings ["darwin"] ["linux"] system; + modules = [ + { + virtualisation.vmVariant = { + virtualisation.host.pkgs = pkgs; + }; + + nixpkgs.overlays = [ + overlay + ]; + + users.groups.ghostty = { + gid = gid; + }; + + users.users.ghostty = { + uid = uid; + }; + + system.stateVersion = nixpkgs.lib.trivial.release; + } + common + module + ]; + } diff --git a/vendor/libghostty-vt/nix/vm/wayland-cinnamon.nix b/vendor/libghostty-vt/nix/vm/wayland-cinnamon.nix new file mode 100644 index 00000000..531c882b --- /dev/null +++ b/vendor/libghostty-vt/nix/vm/wayland-cinnamon.nix @@ -0,0 +1,7 @@ +{...}: { + imports = [ + ./common-cinnamon.nix + ]; + + services.displayManager.defaultSession = "cinnamon-wayland"; +} diff --git a/vendor/libghostty-vt/nix/vm/wayland-gnome.nix b/vendor/libghostty-vt/nix/vm/wayland-gnome.nix new file mode 100644 index 00000000..eb277d5d --- /dev/null +++ b/vendor/libghostty-vt/nix/vm/wayland-gnome.nix @@ -0,0 +1,9 @@ +{...}: { + imports = [ + ./common-gnome.nix + ]; + + services.displayManager = { + defaultSession = "gnome"; + }; +} diff --git a/vendor/libghostty-vt/nix/vm/wayland-plasma6.nix b/vendor/libghostty-vt/nix/vm/wayland-plasma6.nix new file mode 100644 index 00000000..6e5a253b --- /dev/null +++ b/vendor/libghostty-vt/nix/vm/wayland-plasma6.nix @@ -0,0 +1,6 @@ +{...}: { + imports = [ + ./common-plasma6.nix + ]; + services.displayManager.defaultSession = "plasma"; +} diff --git a/vendor/libghostty-vt/nix/vm/x11-cinnamon.nix b/vendor/libghostty-vt/nix/vm/x11-cinnamon.nix new file mode 100644 index 00000000..636f235a --- /dev/null +++ b/vendor/libghostty-vt/nix/vm/x11-cinnamon.nix @@ -0,0 +1,7 @@ +{...}: { + imports = [ + ./common-cinnamon.nix + ]; + + services.displayManager.defaultSession = "cinnamon"; +} diff --git a/vendor/libghostty-vt/nix/vm/x11-plasma6.nix b/vendor/libghostty-vt/nix/vm/x11-plasma6.nix new file mode 100644 index 00000000..7818a80c --- /dev/null +++ b/vendor/libghostty-vt/nix/vm/x11-plasma6.nix @@ -0,0 +1,6 @@ +{...}: { + imports = [ + ./common-plasma6.nix + ]; + services.displayManager.defaultSession = "plasmax11"; +} diff --git a/vendor/libghostty-vt/nix/vm/x11-xfce.nix b/vendor/libghostty-vt/nix/vm/x11-xfce.nix new file mode 100644 index 00000000..71eb87f2 --- /dev/null +++ b/vendor/libghostty-vt/nix/vm/x11-xfce.nix @@ -0,0 +1,7 @@ +{...}: { + imports = [ + ./common-xfce.nix + ]; + + services.displayManager.defaultSession = "xfce"; +} |
