diff --git a/flake.nix b/flake.nix index 350f7e9..83f53c8 100644 --- a/flake.nix +++ b/flake.nix @@ -78,6 +78,7 @@ flake-utils, home-manager, agenix, + nixgl, lanzaboote, disko, nvf, @@ -139,6 +140,8 @@ { nix.package = pkgs.nix; } ./hosts/${name}/home.nix ]; + + extraSpecialArgs = inputs; }; in { diff --git a/hosts/pro-home/home.nix b/hosts/pro-home/home.nix index e424be8..b919a5e 100644 --- a/hosts/pro-home/home.nix +++ b/hosts/pro-home/home.nix @@ -1,11 +1,23 @@ -{ ... }: +{ config, nixgl, pkgs, ... }: { imports = [ ../../modules/home ]; + nixGL = { + packages = nixgl.packages; + installScripts = ["mesa"]; + }; + modules.home = { + apps = { + kitty = { + enable = true; + package = config.lib.nixGL.wrap pkgs.kitty; + }; + }; + shell = { zsh.enable = true; atuin.enable = true; diff --git a/modules/home/apps/kitty.nix b/modules/home/apps/kitty.nix index e238671..0cec777 100644 --- a/modules/home/apps/kitty.nix +++ b/modules/home/apps/kitty.nix @@ -18,10 +18,13 @@ in ''; type = types.bool; }; + + package = lib.mkPackageOption pkgs "kitty" { }; }; config = mkIf cfg.enable { programs.kitty = { enable = true; + inherit (cfg) package; font = { name = "FiraCode Nerd Font";