begin hjem migration, bump flake

This commit is contained in:
atagen 2025-08-08 17:00:13 +10:00
parent f188c7a092
commit 8d77e96d89
15 changed files with 260 additions and 218 deletions

View file

@ -1,4 +1,9 @@
{ config, ... }:
{
pkgs,
lib,
config,
...
}:
{
# hm.programs.kitty =
# let
@ -38,20 +43,19 @@
# };
# };
hm.programs.ghostty =
let
inherit (config) rice;
in
{
enable = true;
installBatSyntax = true;
enableFishIntegration = true;
clearDefaultKeybinds = false;
themes.rice =
home.packages = [ pkgs.ghostty ];
home.xdg.config.files = {
"ghostty/themes/rice" = {
generator =
(pkgs.formats.keyValue {
listsAsDuplicateKeys = true;
mkKeyValue = lib.generators.mkKeyValueDefault { } " = ";
}).generate
"ghostty-theme";
value =
let
inherit (rice.palette.shortHex) util;
inherit (rice.palette.hex) normal bright;
inherit (config.rice.palette.shortHex) util;
inherit (config.rice.palette.hex) normal bright;
in
{
foreground = util.fg;
@ -78,15 +82,31 @@
selection-foreground = util.fg_sel;
selection-background = util.bg_sel;
};
settings = {
theme = "rice";
font-size = rice.fonts.monospace.size;
font-family = rice.fonts.monospace.name;
window-decoration = "server";
gtk-titlebar = false;
gtk-single-instance = true;
linux-cgroup = "always";
gtk-wide-tabs = false;
};
};
"ghostty/config" = {
generator = lib.generators.toKeyValue { };
value =
let
inherit (config) rice;
in
{
theme = "rice";
font-size = rice.fonts.monospace.size;
font-family = rice.fonts.monospace.name;
window-decoration = "server";
gtk-titlebar = false;
gtk-single-instance = true;
linux-cgroup = "always";
gtk-wide-tabs = false;
};
};
};
# hm.programs.ghostty = {
# enable = true;
# package = null;
# installBatSyntax = true;
# enableFishIntegration = true;
# clearDefaultKeybinds = false;
# };
}