move all home level programs to progems dir

This commit is contained in:
ulic-youthlic 2025-02-01 18:43:49 +08:00
parent 77d70dcf2e
commit bc450a9fe7
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
27 changed files with 27 additions and 21 deletions

View file

@ -0,0 +1,55 @@
{
pkgs,
config,
lib,
...
}:
{
options = {
youthlic.programs.ghostty = {
enable = lib.mkEnableOption "ghostty";
};
};
config =
let
cfg = config.youthlic.programs.ghostty;
in
(lib.mkIf cfg.enable {
programs.ghostty = lib.mkMerge [
{
enable = true;
package = pkgs.ghostty;
settings = {
# font-family = "FiraCode Nerd Font";
font-feature = [
"calt=1"
"clig=1"
"liga=1"
"cv01"
"cv02"
"cv06"
"zero"
"onum"
"cv17"
"ss05"
"ss03"
"cv16"
"cv31"
"cv29"
"cv30"
];
font-size = 17;
# theme = "ayu";
background-opacity = 0.8;
confirm-close-surface = "false";
};
}
(lib.mkIf config.youthlic.programs.fish.enable {
enableFishIntegration = true;
})
(lib.mkIf config.youthlic.programs.bash.enable {
enableBashIntegration = true;
})
];
});
}