From 378b6b7778cc0bd32b18de7b8c45f69302f95f24 Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Sat, 21 Dec 2024 16:58:20 -0600 Subject: [PATCH] alacritty --> kitty --- flake.nix | 2 -- home/lib/chromeos.nix | 4 ++++ home/modules/gui/alacritty.nix | 35 ---------------------------------- home/modules/gui/default.nix | 2 +- home/modules/gui/kitty.nix | 9 +++++++++ overlays/default.nix | 1 - 6 files changed, 14 insertions(+), 39 deletions(-) delete mode 100644 home/modules/gui/alacritty.nix create mode 100644 home/modules/gui/kitty.nix diff --git a/flake.nix b/flake.nix index ce535a2..1ee8610 100644 --- a/flake.nix +++ b/flake.nix @@ -39,8 +39,6 @@ inputs.nixpkgs.follows = "nixpkgs"; }; - # alacritty-theme - alacritty-theme.url = "github:alexghr/alacritty-theme.nix"; }; outputs = { self, nixpkgs, home-manager, ... }@inputs: diff --git a/home/lib/chromeos.nix b/home/lib/chromeos.nix index fac612a..f55c307 100644 --- a/home/lib/chromeos.nix +++ b/home/lib/chromeos.nix @@ -12,4 +12,8 @@ # activate NixGL wrapper for Crostini nixGL.packages = inputs.nixgl.packages; nixGL.defaultWrapper = "mesa"; + # to use: + # programs.example.package = (config.lib.nixGL.wrap pkgs.example); + # or: + # home.packages = with pkgs; [ (config.libnixGL.wrap example); ]; } diff --git a/home/modules/gui/alacritty.nix b/home/modules/gui/alacritty.nix deleted file mode 100644 index 93968e2..0000000 --- a/home/modules/gui/alacritty.nix +++ /dev/null @@ -1,35 +0,0 @@ -{ config, pkgs, ... }: { - - # home.packages = with pkgs; [ alacritty-theme ]; - - programs.alacritty = { - enable = true; - package = (config.lib.nixGL.wrap pkgs.alacritty); - settings = { - bell = { - animation = "EaseOutCirc"; - duration = 200; - color = "#c2985b"; - }; - cursor = { - style = { - shape = "Beam"; - blinking = "On"; - }; - }; - font = { normal = { family = "BerkeleyMono Nerd Font Mono"; }; }; - general.import = [ pkgs.alacritty-theme.tokyo_night_enhanced ]; - terminal = { shell.program = "${pkgs.fish}/bin/fish"; }; - window = { - decorations = "None"; - padding = { - x = 3; - y = 3; - }; - startup_mode = "Maximized"; - }; - }; - }; - -} - diff --git a/home/modules/gui/default.nix b/home/modules/gui/default.nix index 7e35d25..f532c59 100644 --- a/home/modules/gui/default.nix +++ b/home/modules/gui/default.nix @@ -1,6 +1,6 @@ { pkgs, ... }: { # Common GUI apps - imports = [ ./alacritty.nix ./firefox.nix ./vscode.nix ]; + imports = [ ./firefox.nix ./kitty.nix ./vscode.nix ]; home.packages = with pkgs; [ gimp-with-plugins qFlipper remmina ]; } diff --git a/home/modules/gui/kitty.nix b/home/modules/gui/kitty.nix new file mode 100644 index 0000000..f452aa3 --- /dev/null +++ b/home/modules/gui/kitty.nix @@ -0,0 +1,9 @@ +{ config, pkgs, ... }: { + + programs.kitty = { + enable = true; + # package = (config.lib.nixGL.wrap pkgs.kitty); + # settings = { linux_display_server = "x11"; }; + }; +} + diff --git a/overlays/default.nix b/overlays/default.nix index 869d778..44feab0 100644 --- a/overlays/default.nix +++ b/overlays/default.nix @@ -22,5 +22,4 @@ }; }; - alacritty-theme = inputs.alacritty-theme.overlays.default; }