From 0441301e12b9b84d53fd38bc6e613e6da2415e6d Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Mon, 24 Feb 2025 10:09:12 +0100 Subject: [PATCH] Add wezterm --- flake.lock | 74 ++++++++++++++++++++--------------------- home/common/default.nix | 1 + home/common/wezterm.nix | 72 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 110 insertions(+), 37 deletions(-) create mode 100644 home/common/wezterm.nix diff --git a/flake.lock b/flake.lock index 2eaef20..ea297bf 100644 --- a/flake.lock +++ b/flake.lock @@ -56,11 +56,11 @@ ] }, "locked": { - "lastModified": 1738453229, - "narHash": "sha256-7H9XgNiGLKN1G1CgRh0vUL4AheZSYzPm+zmZ7vxbJdo=", + "lastModified": 1740872218, + "narHash": "sha256-ZaMw0pdoUKigLpv9HiNDH2Pjnosg7NBYMJlHTIsHEUo=", "owner": "hercules-ci", "repo": "flake-parts", - "rev": "32ea77a06711b758da0ad9bd6a844c5740a87abd", + "rev": "3876f6b87db82f33775b1ef5ea343986105db764", "type": "github" }, "original": { @@ -118,11 +118,11 @@ "zig2nix": "zig2nix" }, "locked": { - "lastModified": 1739918167, - "narHash": "sha256-6zdYjNKqMTKfHKlaz0kKqqSmoSCqEjv1vyIygqi3wCo=", + "lastModified": 1741376783, + "narHash": "sha256-vXlLil+0Cz6hznEX2GpwDlb8TM+Q8Cz0gLTebUhPtvE=", "owner": "ghostty-org", "repo": "ghostty", - "rev": "38908e01268298ced33b7b6835e49b8c6d437e12", + "rev": "4a215a9518c277780babe5d00e24784f456c80dd", "type": "github" }, "original": { @@ -141,11 +141,11 @@ ] }, "locked": { - "lastModified": 1737465171, - "narHash": "sha256-R10v2hoJRLq8jcL4syVFag7nIGE7m13qO48wRIukWNg=", + "lastModified": 1740915799, + "narHash": "sha256-JvQvtaphZNmeeV+IpHgNdiNePsIpHD5U/7QN5AeY44A=", "owner": "cachix", "repo": "git-hooks.nix", - "rev": "9364dc02281ce2d37a1f55b6e51f7c0f65a75f17", + "rev": "42b1ba089d2034d910566bf6b40830af6b8ec732", "type": "github" }, "original": { @@ -205,11 +205,11 @@ ] }, "locked": { - "lastModified": 1739992710, - "narHash": "sha256-9kEscmGnXHjSgcqyJR4TzzHhska4yz1inSQs6HuO9qU=", + "lastModified": 1741378606, + "narHash": "sha256-ytDmwV93lZ1f6jswJkxEQz5cBlwje/2rH/yUZDADZNs=", "owner": "nix-community", "repo": "home-manager", - "rev": "1c189f011447810af939a886ba7bee33532bb1f9", + "rev": "95711f926676018d279ba09fe7530d03b5d5b3e2", "type": "github" }, "original": { @@ -229,11 +229,11 @@ "treefmt-nix": "treefmt-nix" }, "locked": { - "lastModified": 1740034565, - "narHash": "sha256-fuTCAi//E0WVGNjLk+9juJMfVmCMZXy66hOpXAbZX90=", + "lastModified": 1741306000, + "narHash": "sha256-qaDw0TyUceZBLntPBOdd1642T/mBGMNtK5NBuv2gWiY=", "owner": "nix-community", "repo": "neovim-nightly-overlay", - "rev": "a56e9f2bfce06729a418081fda1dfa1c0dd18f81", + "rev": "c1855b306b8eeb70118b3ba70471188a65e694e7", "type": "github" }, "original": { @@ -245,11 +245,11 @@ "neovim-src": { "flake": false, "locked": { - "lastModified": 1739988796, - "narHash": "sha256-oldU5hcEGlMLknn/q0NFFnAUWfPYeJHRTlJtrLjpQQg=", + "lastModified": 1741302428, + "narHash": "sha256-zcgucpL/rgEC/IIii6R4NvmtJsYT+/F0ub1FQOWVv0Q=", "owner": "neovim", "repo": "neovim", - "rev": "b0bbe25c4808158e8c806959e4d185244073647a", + "rev": "e46f07b1d2942c7b5c08fca9a4cac735ee2c0c71", "type": "github" }, "original": { @@ -265,11 +265,11 @@ ] }, "locked": { - "lastModified": 1739676768, - "narHash": "sha256-U1HQ7nzhJyVVXUgjU028UCkbLQLEIkg42+G7iIiBmlU=", + "lastModified": 1740886574, + "narHash": "sha256-jN6kJ41B6jUVDTebIWeebTvrKP6YiLd1/wMej4uq4Sk=", "owner": "nix-community", "repo": "nix-index-database", - "rev": "ae15068e79e22b76c344f0d7f8aed1bb1c5b0b63", + "rev": "26a0f969549cf4d56f6e9046b9e0418b3f3b94a5", "type": "github" }, "original": { @@ -280,11 +280,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1739863612, - "narHash": "sha256-UbtgxplOhFcyjBcNbTVO8+HUHAl/WXFDOb6LvqShiZo=", + "lastModified": 1741037377, + "narHash": "sha256-SvtvVKHaUX4Owb+PasySwZsoc5VUeTf1px34BByiOxw=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "632f04521e847173c54fa72973ec6c39a371211c", + "rev": "02032da4af073d0f6110540c8677f16d4be0117f", "type": "github" }, "original": { @@ -312,11 +312,11 @@ }, "nixpkgs-stable_2": { "locked": { - "lastModified": 1739923778, - "narHash": "sha256-BqUY8tz0AQ4to2Z4+uaKczh81zsGZSYxjgvtw+fvIfM=", + "lastModified": 1741332913, + "narHash": "sha256-ri1e8ZliWS3Jnp9yqpKApHaOo7KBN33W8ECAKA4teAQ=", "owner": "nixos", "repo": "nixpkgs", - "rev": "36864ed72f234b9540da4cf7a0c49e351d30d3f1", + "rev": "20755fa05115c84be00b04690630cb38f0a203ad", "type": "github" }, "original": { @@ -344,11 +344,11 @@ }, "nixpkgs-unstable_2": { "locked": { - "lastModified": 1739863612, - "narHash": "sha256-UbtgxplOhFcyjBcNbTVO8+HUHAl/WXFDOb6LvqShiZo=", + "lastModified": 1741310760, + "narHash": "sha256-aizILFrPgq/W53Jw8i0a1h1GZAAKtlYOrG/A5r46gVM=", "owner": "nixos", "repo": "nixpkgs", - "rev": "632f04521e847173c54fa72973ec6c39a371211c", + "rev": "de0fe301211c267807afd11b12613f5511ff7433", "type": "github" }, "original": { @@ -360,11 +360,11 @@ }, "nixpkgs_2": { "locked": { - "lastModified": 1739866667, - "narHash": "sha256-EO1ygNKZlsAC9avfcwHkKGMsmipUk1Uc0TbrEZpkn64=", + "lastModified": 1741246872, + "narHash": "sha256-Q6pMP4a9ed636qilcYX8XUguvKl/0/LGXhHcRI91p0U=", "owner": "nixos", "repo": "nixpkgs", - "rev": "73cf49b8ad837ade2de76f87eb53fc85ed5d4680", + "rev": "10069ef4cf863633f57238f179a0297de84bd8d3", "type": "github" }, "original": { @@ -461,16 +461,16 @@ ] }, "locked": { - "lastModified": 1738263917, - "narHash": "sha256-j/3fwe2pEOquHabP/puljOKwAZFjIE9gXZqA91sC48M=", + "lastModified": 1741368279, + "narHash": "sha256-WTaC8HmnIq6O71iK0g9as404BbmS+YyEP5qS85m2JBY=", "owner": "jcollie", "repo": "zig2nix", - "rev": "c311d8e77a6ee0d995f40a6e10a89a3a4ab04f9a", + "rev": "672971b5b6911de21446ad4fc76dee677922eda0", "type": "github" }, "original": { "owner": "jcollie", - "ref": "c311d8e77a6ee0d995f40a6e10a89a3a4ab04f9a", + "ref": "672971b5b6911de21446ad4fc76dee677922eda0", "repo": "zig2nix", "type": "github" } diff --git a/home/common/default.nix b/home/common/default.nix index 26df1d8..c5112bd 100644 --- a/home/common/default.nix +++ b/home/common/default.nix @@ -16,6 +16,7 @@ ./utils.nix ./vcs.nix ./web.nix + ./wezterm.nix ]; options.patagia.desktop.enable = lib.mkEnableOption "Desktop environment"; diff --git a/home/common/wezterm.nix b/home/common/wezterm.nix new file mode 100644 index 0000000..121b8ca --- /dev/null +++ b/home/common/wezterm.nix @@ -0,0 +1,72 @@ +{ + config, + lib, + ... +}: +{ + config = lib.mkIf config.patagia.desktop.enable { + programs.wezterm = { + enable = true; + colorSchemes = { + patagiaLight = { + ansi = [ + "#222222" + "#D14949" + "#48874F" + "#AFA75A" + "#599797" + "#8F6089" + "#5C9FA8" + "#8C8C8C" + ]; + brights = [ + "#444444" + "#FF6D6D" + "#89FF95" + "#FFF484" + "#97DDFF" + "#FDAAF2" + "#85F5DA" + "#E9E9E9" + ]; + background = "#fefeff"; + foreground = "#222222"; + cursor_bg = "#aa0000"; + cursor_border = "#aa0000"; + cursor_fg = "#1B1B1B"; + selection_bg = "#ffe6a4"; + selection_fg = "#483600"; + }; + }; + + extraConfig = '' + return { + font = wezterm.font("Berkeley Mono", { weight = "Regular", stretch = "Normal" }), + font_size = 16, + -- freetype_load_target = "HorizontalLcd", + freetype_load_target = "Light", + -- font_size = 11, + -- font_size = 11, + -- freetype_load_target = "Normal", + freetype_load_flags = "NO_AUTOHINT", + color_scheme = "patagiaLight", + check_for_updates = false, + custom_block_glyphs = false, + warn_about_missing_glyphs = false, + bold_brightens_ansi_colors = false, + unicode_version = 14, + allow_square_glyphs_to_overflow_width = "Always", + xcursor_theme = "Adwaita", + hide_mouse_cursor_when_typing = false, + tab_bar_at_bottom = true, + use_fancy_tab_bar = false, + show_tab_index_in_tab_bar = true, + underline_position = -4, + underline_thickness = 2, + --line_height = 0.95, + } + ''; + + }; + }; +}