From 967f556eac7436a899155783b29a5c7b8b3e0e21 Mon Sep 17 00:00:00 2001 From: Grimmauld Date: Mon, 9 Sep 2024 10:32:50 +0200 Subject: [PATCH] alacritty config file --- common/gaming.nix | 2 +- common/xdg/alacritty.toml | 8 ++++++++ common/xdg/mime.nix | 12 +++++++++++- specific/grimm-nixos-ssd/configuration.nix | 3 +-- 4 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 common/xdg/alacritty.toml diff --git a/common/gaming.nix b/common/gaming.nix index b33ddd7..2b966f9 100644 --- a/common/gaming.nix +++ b/common/gaming.nix @@ -39,7 +39,7 @@ in }; }; - programs.the-honkers-railway-launcher.enable = true; + programs.honkers-railway-launcher.enable = true; services.udev.packages = [ pkgs.wooting-udev-rules ]; diff --git a/common/xdg/alacritty.toml b/common/xdg/alacritty.toml new file mode 100644 index 0000000..7a6a20a --- /dev/null +++ b/common/xdg/alacritty.toml @@ -0,0 +1,8 @@ +[font] + # Point size + size=16.0 + normal = { family="Noto Sans Mono" } + +[window] + opacity=0.85 + diff --git a/common/xdg/mime.nix b/common/xdg/mime.nix index 5a31460..572c9eb 100644 --- a/common/xdg/mime.nix +++ b/common/xdg/mime.nix @@ -33,6 +33,16 @@ let "blender.desktop" ]; tex_editors = [ ] ++ text_editors; + + alacritty_pkg = pkgs.symlinkJoin { + name = "alacritty"; + paths = [ pkgs.alacritty ]; + buildInputs = [ pkgs.makeWrapper ]; + postBuild = '' + wrapProgram $out/bin/alacritty \ + --add-flags "--config-file ${./alacritty.toml}" + ''; + }; in { config = lib.mkIf (enable && portals && graphical) { @@ -41,7 +51,7 @@ in zathura gnome-console - alacritty + alacritty_pkg imhex libreoffice-qt filezilla diff --git a/specific/grimm-nixos-ssd/configuration.nix b/specific/grimm-nixos-ssd/configuration.nix index 4a44c3a..7ed4006 100644 --- a/specific/grimm-nixos-ssd/configuration.nix +++ b/specific/grimm-nixos-ssd/configuration.nix @@ -7,8 +7,7 @@ ./../../sway ]; - age.identityPaths = [ "/home/grimmauld/.ssh/id_ed25519" ]; - + age.identityPaths = [ "/root/.ssh/id_ed25519" ]; services.zfs.trim.enable = true; boot.supportedFilesystems.zfs = true;