From 6906d9a0b62d5ac7037ef2e6e5816e619d68445d Mon Sep 17 00:00:00 2001 From: Dennis Date: Thu, 4 Dec 2025 18:54:34 +0100 Subject: [PATCH] ghostty config for mac --- hosts/dnsc-machine/default.nix | 31 +++++++++++++++++-------------- modules/ghostty/default.nix | 32 +++++--------------------------- 2 files changed, 22 insertions(+), 41 deletions(-) diff --git a/hosts/dnsc-machine/default.nix b/hosts/dnsc-machine/default.nix index d5194c9..590bf9d 100644 --- a/hosts/dnsc-machine/default.nix +++ b/hosts/dnsc-machine/default.nix @@ -5,18 +5,18 @@ config, inputs, outputs, - pkgs, + pkgs, ... }: { - imports = - [ # Include the results of the hardware scan. - ./hardware-configuration.nix - inputs.home-manager.nixosModules.home-manager - ../../modules/wm/ly - ../../modules/keyd - ]; + imports = [ + # Include the results of the hardware scan. + ./hardware-configuration.nix + inputs.home-manager.nixosModules.home-manager + ../../modules/wm/ly + ../../modules/keyd + ]; # Bootloader. boot.loader.systemd-boot.enable = true; @@ -42,7 +42,7 @@ }; security.sudo.enable = true; - services.xserver= { + services.xserver = { xkb = { layout = "eu"; }; @@ -76,8 +76,11 @@ users.users.dennis = { isNormalUser = true; description = "dennis"; - extraGroups = [ "networkmanager" "wheel" ]; - packages = with pkgs; []; + extraGroups = [ + "networkmanager" + "wheel" + ]; + packages = with pkgs; [ ]; openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILvXWZOPOJJDAoF+Sx/ZLoAVu6G/7/MAWoknBgMAzjul dennis@dnsc-mac" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKnmuxDkpDIku5t1Tykz21u78xoQ7LJR8JEcfth32LGu dennis@dnsc-work" @@ -92,7 +95,7 @@ programs.niri.enable = true; security.polkit.enable = true; services.gnome.gnome-keyring.enable = true; - security.pam.services.hyprlock = {}; + security.pam.services.hyprlock = { }; # Steam programs.steam = { @@ -127,11 +130,11 @@ inputs.ironbar.homeManagerModules.default ../../home/linux.nix ]; - }; + }; }; }; - # System Packages + # System Packages environment.systemPackages = with pkgs; [ gcc wget diff --git a/modules/ghostty/default.nix b/modules/ghostty/default.nix index d314715..eec46ce 100644 --- a/modules/ghostty/default.nix +++ b/modules/ghostty/default.nix @@ -4,18 +4,16 @@ enableFishIntegration = true; installVimSyntax = true; clearDefaultKeybinds = true; - package = ""; + package = null; settings = { - theme = "Catppuccin Mocha"; - font-size = 15; - font-family = "VictorMono NF SemiBold"; + font-size = 14; + font-family = "VictorMono Nerd Font"; background-opacity = 0.94; window-padding-x = 12; window-padding-y = 12; window-padding-balance = true; window-inherit-working-directory = true; window-theme = "ghostty"; - copy-on-select = "clipboard"; shell-integration-features = true; scrollback-limit = 100000; link-url = true; @@ -44,34 +42,14 @@ "15=#ffffff" ]; keybind = [ - "ctrl+b>s=new_split:auto" - "ctrl+b>minus=new_split:down" - "ctrl+b>v=new_split:right" - "ctrl+b>h=goto_split:left" - "ctrl+b>j=goto_split:down" - "ctrl+b>k=goto_split:up" - "ctrl+b>l=goto_split:right" - "ctrl+b>z=toggle_split_zoom" - "ctrl+b>c=new_tab" - "ctrl+b>x=close_surface" - "ctrl+b>1=goto_tab:1" - "ctrl+b>2=goto_tab:2" - "ctrl+b>3=goto_tab:3" - "ctrl+b>4=goto_tab:4" - "ctrl+b>5=goto_tab:5" - "ctrl+b>6=goto_tab:6" - "ctrl+b>7=goto_tab:7" - "ctrl+b>8=goto_tab:8" - "ctrl+b>9=goto_tab:9" - "ctrl+b>p=toggle_command_palette" - "ctrl+shift+u=scroll_page_lines:-40" - "ctrl+shift+d=scroll_page_lines:40" "ctrl+plus=increase_font_size:2" "ctrl+minus=decrease_font_size:2" "ctrl+0=reset_font_size" "ctrl+shift+a=select_all" "ctrl+shift+c=copy_to_clipboard" "ctrl+shift+v=paste_from_clipboard" + "cmd+c=copy_to_clipboard" + "cmd+v=paste_from_clipboard" "global:cmd+semicolon=toggle_quick_terminal" ]; };