mirror of
https://github.com/zoriya/flake.git
synced 2026-06-01 10:15:45 +00:00
Use ghostty's hm module
This commit is contained in:
Generated
+30
-30
@@ -7,11 +7,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1736122686,
|
||||
"narHash": "sha256-hyfCCS0nURoEAmdtuWOMs14iomFsYiqte/HcgiPlIgQ=",
|
||||
"lastModified": 1736497508,
|
||||
"narHash": "sha256-murrCQMYKtZ8rkZ5O726ZCsCDee1l3ZdmV8yC9gRaIc=",
|
||||
"owner": "aylur",
|
||||
"repo": "astal",
|
||||
"rev": "5c3399817fdc86150be531e42d7952e33943f0ad",
|
||||
"rev": "ef4f95608481414053ecdbe4de29bd86fb452813",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -172,11 +172,11 @@
|
||||
"zig": "zig"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1736210320,
|
||||
"narHash": "sha256-QnDkQ/s1OWmPj1f+7MFNxQiAPJdHbI1Aft7yM5I+8gQ=",
|
||||
"lastModified": 1736532642,
|
||||
"narHash": "sha256-9Kjg6zmNPHqJUHlNuHjEp2PakXYugxjmz6awsgsPdJg=",
|
||||
"owner": "mitchellh",
|
||||
"repo": "ghostty",
|
||||
"rev": "a3837a1e4ee06a183f32d4a622c2cdcd51f73fb8",
|
||||
"rev": "799f5b823904a2076a49c494ae50b486ac519368",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -259,11 +259,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1736204492,
|
||||
"narHash": "sha256-CoBPRgkUex9Iz6qGSzi/BFVUQjndB0PmME2B6eEyeCs=",
|
||||
"lastModified": 1736508663,
|
||||
"narHash": "sha256-ZOaGwa+WnB7Zn3YXimqjmIugAnHePdXCmNu+AHkq808=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "20665c6efa83d71020c8730f26706258ba5c6b2a",
|
||||
"rev": "2532b500c3ed2b8940e831039dcec5a5ea093afc",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -317,11 +317,11 @@
|
||||
"treefmt-nix": "treefmt-nix"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1736233375,
|
||||
"narHash": "sha256-I6fqKdaoKOVU33SyPv+MuxWRiOs+PXQTO94aCLA3rAc=",
|
||||
"lastModified": 1736467518,
|
||||
"narHash": "sha256-egAYqT01h6te+w2Y6NbaZDkvYsUUacLCvSU+Th2lYoM=",
|
||||
"owner": "nix-community",
|
||||
"repo": "neovim-nightly-overlay",
|
||||
"rev": "721f5f602b876a3ee21be04f68ab3cedf162e7f6",
|
||||
"rev": "88beb655f76e476a3e1745d9aacc496d5c8ab1da",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -333,11 +333,11 @@
|
||||
"neovim-src": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1736193797,
|
||||
"narHash": "sha256-5S4RnwKfa5nn/r+8OsMtfgD6TEA5P6cWKti76A0zIMc=",
|
||||
"lastModified": 1736443605,
|
||||
"narHash": "sha256-vLAZdZ2WasXzhMMIM0IJAzWkrx/PGXLdfdiwGPij1/w=",
|
||||
"owner": "neovim",
|
||||
"repo": "neovim",
|
||||
"rev": "b6ab294838421afb6932c52dd6e6d35d571e621d",
|
||||
"rev": "7c00e0efbb18e8627ac59eaadf564a9f1b2bafcd",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -353,11 +353,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1736085891,
|
||||
"narHash": "sha256-bTl9fcUo767VaSx4Q5kFhwiDpFQhBKna7lNbGsqCQiA=",
|
||||
"lastModified": 1736370755,
|
||||
"narHash": "sha256-iWcjToBpx4PUd74uqvIGAfqqVfyrvRLRauC/SxEKIF0=",
|
||||
"owner": "LnL7",
|
||||
"repo": "nix-darwin",
|
||||
"rev": "ba9b3173b0f642ada42b78fb9dfc37ca82266f6c",
|
||||
"rev": "57733bd1dc81900e13438e5b4439239f1b29db0e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -373,11 +373,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1736047960,
|
||||
"narHash": "sha256-hutd85FA1jUJhhqBRRJ+u7UHO9oFGD/RVm2x5w8WjVQ=",
|
||||
"lastModified": 1736440205,
|
||||
"narHash": "sha256-QJgTI//KEGuEJC6FDxuI9Dq8PewIpnxD2NVx2/OHbfc=",
|
||||
"owner": "nix-community",
|
||||
"repo": "nix-index-database",
|
||||
"rev": "816a6ae88774ba7e74314830546c29e134e0dffb",
|
||||
"rev": "a2200b499efa01ca8646173e94cdfcc93188f2b8",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -388,11 +388,11 @@
|
||||
},
|
||||
"nixos-hardware": {
|
||||
"locked": {
|
||||
"lastModified": 1736237814,
|
||||
"narHash": "sha256-uTdscVaKjnRnBIMuu/oWwdiGhYd/JOQ4YZGHeCoroqs=",
|
||||
"lastModified": 1736441705,
|
||||
"narHash": "sha256-OL7leZ6KBhcDF3nEKe4aZVfIm6xQpb1Kb+mxySIP93o=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixos-hardware",
|
||||
"rev": "ca30f8501ab452ca687a7fdcb2d43e1fb1732317",
|
||||
"rev": "8870dcaff63dfc6647fb10648b827e9d40b0a337",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -425,11 +425,11 @@
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1736012469,
|
||||
"narHash": "sha256-/qlNWm/IEVVH7GfgAIyP6EsVZI6zjAx1cV5zNyrs+rI=",
|
||||
"lastModified": 1736344531,
|
||||
"narHash": "sha256-8YVQ9ZbSfuUk2bUf2KRj60NRraLPKPS0Q4QFTbc+c2c=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "8f3e1f807051e32d8c95cd12b9b421623850a34d",
|
||||
"rev": "bffc22eb12172e6db3c5dde9e3e5628f8e3e7912",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -533,11 +533,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1736222735,
|
||||
"narHash": "sha256-1nCjLVbMarQ10b2m94L1DITVCpARdoIIWEEHElwJH3k=",
|
||||
"lastModified": 1736503245,
|
||||
"narHash": "sha256-kK9LwjCVqC6BTcWGAjecoRwNa+C4PG6trBD259ZT28k=",
|
||||
"owner": "youwen5",
|
||||
"repo": "zen-browser-flake",
|
||||
"rev": "20f78bb5ce8cace7352e41c125e95372ffdbc2e0",
|
||||
"rev": "86c7d90f6bfb7a78a68c1858324bd852a4645cf1",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
||||
@@ -257,7 +257,7 @@
|
||||
''
|
||||
# Create a new tmux session (with a random name) and attach.
|
||||
if [[ -z "$TMUX" ]]; then
|
||||
exec tmux -u new-session -s "#$(hexdump -n 4 -v -e '/1 "%02X"' /dev/urandom)"
|
||||
exec tmux -u new-session -s "#$(hexdump -n 4 -v -e '/1 "%02X"' /dev/urandom)"
|
||||
elif [[ $SHLVL -eq 1 ]]; then
|
||||
session=$(tmux display-message -p "#S")
|
||||
# kill current sesion if we are quiting the only pane
|
||||
@@ -280,9 +280,9 @@
|
||||
# - 'mh+24' matches files (or directories or whatever) that are older than 24 hours.autoload -Uz compinit
|
||||
autoload -Uz compinit
|
||||
if [[ -n $ZSH_CACHE_DIR/.zcompdump(#qN.mh+24) ]]; then
|
||||
compinit;
|
||||
compinit;
|
||||
else
|
||||
compinit -C;
|
||||
compinit -C;
|
||||
fi;
|
||||
'';
|
||||
initExtra = builtins.readFile ./init.zsh;
|
||||
|
||||
@@ -1,9 +1,3 @@
|
||||
if [[ -n $GHOSTTY_RESOURCES_DIR ]]; then
|
||||
autoload -Uz -- "$GHOSTTY_RESOURCES_DIR"/shell-integration/zsh/ghostty-integration
|
||||
ghostty-integration
|
||||
unfunction ghostty-integration
|
||||
fi
|
||||
|
||||
# This speeds up pasting w/ autosuggest
|
||||
# https://github.com/zsh-users/zsh-autosuggestions/issues/238
|
||||
pasteinit() {
|
||||
|
||||
@@ -1,48 +0,0 @@
|
||||
# disable ligatures
|
||||
font-feature = -calt
|
||||
|
||||
theme = light:catppuccin-latte,dark:catppuccin-mocha
|
||||
|
||||
cursor-style-blink = false
|
||||
unfocused-split-opacity = 1
|
||||
|
||||
keybind = clear
|
||||
keybind = ctrl+shift+c=copy_to_clipboard
|
||||
keybind = ctrl+shift+v=paste_from_clipboard
|
||||
|
||||
keybind = ctrl+plus=increase_font_size:1
|
||||
keybind = ctrl+equal=increase_font_size:1
|
||||
keybind = ctrl+minus=decrease_font_size:1
|
||||
keybind = ctrl+zero=reset_font_size
|
||||
keybind = ctrl+backspace=reset_font_size
|
||||
|
||||
keybind = ctrl+shift+comma=reload_config
|
||||
keybind = ctrl+shift+i=inspector:toggle
|
||||
|
||||
window-padding-x = 0
|
||||
window-padding-y = 0
|
||||
window-padding-balance = true
|
||||
window-decoration = false
|
||||
|
||||
# avoid dreadfully long startup times
|
||||
gtk-single-instance = true
|
||||
|
||||
clipboard-read = allow
|
||||
clipboard-write = allow
|
||||
clipboard-trim-trailing-spaces = true
|
||||
|
||||
copy-on-select = false
|
||||
|
||||
confirm-close-surface = false
|
||||
quit-after-last-window-closed = true
|
||||
resize-overlay = never
|
||||
|
||||
auto-update = off
|
||||
|
||||
# we manually configure it
|
||||
shell-integration = none
|
||||
# disabling cursor because it sets it to blink and i hate that
|
||||
shell-integration-features = no-cursor,sudo,title
|
||||
|
||||
window-padding-color = extend
|
||||
# vim: ft=conf
|
||||
+48
-5
@@ -1,12 +1,55 @@
|
||||
{
|
||||
ghostty,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
xdg.configFile."ghostty/config".source = ./ghostty.config;
|
||||
programs.ghostty = {
|
||||
enable = true;
|
||||
package = ghostty.packages.${pkgs.system}.default;
|
||||
enableZshIntegration = true;
|
||||
clearDefaultKeybinds = true;
|
||||
settings = {
|
||||
font-size = 12;
|
||||
font-feature = "-calt";
|
||||
freetype-load-flags = false;
|
||||
font-style = "semibold";
|
||||
|
||||
home.packages = lib.optionals pkgs.stdenv.isLinux [
|
||||
ghostty.packages.${pkgs.system}.default
|
||||
];
|
||||
theme = "light:catppuccin-latte,dark:catppuccin-mocha";
|
||||
# disabling cursor because it sets it to blink and i hate that
|
||||
shell-integration-features = "no-cursor,sudo,title";
|
||||
cursor-style-blink = false;
|
||||
|
||||
window-padding-x = 0;
|
||||
window-padding-y = 0;
|
||||
window-padding-balance = true;
|
||||
|
||||
window-decoration = false;
|
||||
confirm-close-surface = false;
|
||||
quit-after-last-window-closed = true;
|
||||
resize-overlay = "never";
|
||||
# avoid dreadfully long startup times
|
||||
gtk-single-instance = true;
|
||||
auto-update = "off";
|
||||
unfocused-split-opacity = 1;
|
||||
|
||||
clipboard-read = "allow";
|
||||
copy-on-select = false;
|
||||
|
||||
keybind = [
|
||||
"ctrl+shift+c=copy_to_clipboard"
|
||||
"ctrl+shift+v=paste_from_clipboard"
|
||||
"cmd+c=copy_to_clipboard"
|
||||
"cmd+v=paste_from_clipboard"
|
||||
|
||||
"ctrl+plus=increase_font_size:1"
|
||||
"ctrl+equal=increase_font_size:1"
|
||||
"ctrl+minus=decrease_font_size:1"
|
||||
"ctrl+zero=reset_font_size"
|
||||
"ctrl+backspace=reset_font_size"
|
||||
|
||||
"ctrl+shift+comma=reload_config"
|
||||
"ctrl+shift+i=inspector:toggle"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user