pro-home: Add kitty and support of nixgl
All checks were successful
check / check (push) Successful in 36s

This commit is contained in:
Florian RICHER 2025-06-26 11:48:01 +02:00
parent a845073dcc
commit 4e98a50b3d
3 changed files with 19 additions and 1 deletions

View file

@ -78,6 +78,7 @@
flake-utils, flake-utils,
home-manager, home-manager,
agenix, agenix,
nixgl,
lanzaboote, lanzaboote,
disko, disko,
nvf, nvf,
@ -139,6 +140,8 @@
{ nix.package = pkgs.nix; } { nix.package = pkgs.nix; }
./hosts/${name}/home.nix ./hosts/${name}/home.nix
]; ];
extraSpecialArgs = inputs;
}; };
in in
{ {

View file

@ -1,11 +1,23 @@
{ ... }: { config, nixgl, pkgs, ... }:
{ {
imports = [ imports = [
../../modules/home ../../modules/home
]; ];
nixGL = {
packages = nixgl.packages;
installScripts = ["mesa"];
};
modules.home = { modules.home = {
apps = {
kitty = {
enable = true;
package = config.lib.nixGL.wrap pkgs.kitty;
};
};
shell = { shell = {
zsh.enable = true; zsh.enable = true;
atuin.enable = true; atuin.enable = true;

View file

@ -18,10 +18,13 @@ in
''; '';
type = types.bool; type = types.bool;
}; };
package = lib.mkPackageOption pkgs "kitty" { };
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
programs.kitty = { programs.kitty = {
enable = true; enable = true;
inherit (cfg) package;
font = { font = {
name = "FiraCode Nerd Font"; name = "FiraCode Nerd Font";