From 46b6b8794e246e918ce2b44fc044230b6a98aa20 Mon Sep 17 00:00:00 2001 From: Mel Date: Sat, 16 Nov 2024 18:02:38 +0100 Subject: Add and configure alacritty Signed-off-by: Mel --- configs/alacritty.toml | 25 +++++++++++++++++++++++++ modules/common.nix | 2 +- modules/home/common.nix | 6 ++++++ 3 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 configs/alacritty.toml diff --git a/configs/alacritty.toml b/configs/alacritty.toml new file mode 100644 index 0000000..9c67e4f --- /dev/null +++ b/configs/alacritty.toml @@ -0,0 +1,25 @@ +[shell] + +program = "/run/current-system/sw/bin/tmux" +args = [ "new-session", "-A", "-D", "-s", "mains" ] + +[window] + +decorations = "None" +startup_mode = "Maximized" + +padding.x = 2 +padding.y = 2 + +[font] + +normal.family = "Meslo LG M DZ" +bold.family = "Meslo LG M DZ" +italic.family = "Meslo LG M DZ" +bold_italic.family = "Meslo LG M DZ" + +size = 10.0 + +[scrolling] + +history = 0 diff --git a/modules/common.nix b/modules/common.nix index 6a505c2..a3cc48f 100644 --- a/modules/common.nix +++ b/modules/common.nix @@ -87,7 +87,7 @@ jdk maven gradle nil nixfmt-rfc-style direnv nixpkgs-review nixpkgs-fmt nixpkgs-lint-community - helix + helix alacritty wineWowPackages.stagingFull winetricks bottles scrcpy apfs-fuse diff --git a/modules/home/common.nix b/modules/home/common.nix index 3d1c143..35a260c 100644 --- a/modules/home/common.nix +++ b/modules/home/common.nix @@ -25,6 +25,12 @@ direnv = { enable = true; }; }; + xdg.configFile = { + # home-manager does not have the option to pass an alacritty + # config file directly. + "alacritty/alacritty.toml".source = ../../configs/alacritty.toml; + }; + home.sessionPath = [ "$HOME/.local/share/JetBrains/Toolbox/scripts" ]; -- cgit 1.4.1