My Nix Configuration

[modules.home] kitty -> ghostty

pyrox.dev 620cad33 d720adff

verified
Changed files
+40 -6
modules
home
profiles
programs
wayland
+2 -1
modules/home/profiles/gui/default.nix
···
programs = {
chromium.enable = mkDefault true;
firefox.enable = mkDefault true;
-
kitty.enable = mkDefault true;
obs.enable = mkDefault true;
vscodium.enable = mkDefault true;
wlogout.enable = mkDefault true;
···
programs = {
chromium.enable = mkDefault true;
firefox.enable = mkDefault true;
+
ghostty.enable = mkDefault true;
+
kitty.enable = mkDefault false;
obs.enable = mkDefault true;
vscodium.enable = mkDefault true;
wlogout.enable = mkDefault true;
+16
modules/home/programs/ghostty/default.nix
···
···
+
{ lib, config, ... }:
+
let
+
cfg = config.py.programs.ghostty;
+
in
+
{
+
options.py.programs.ghostty.enable = lib.mkEnableOption "ghostty";
+
config.catppuccin.ghostty.enable = cfg.enable;
+
config.programs.ghostty = lib.mkIf cfg.enable {
+
enable = true;
+
enableFishIntegration = true;
+
installBatSyntax = true;
+
enableBashIntegration = true;
+
enableZshIntegration = false;
+
settings = import ./settings.nix;
+
};
+
}
+17
modules/home/programs/ghostty/settings.nix
···
···
+
{
+
font-family = "BlexMono Nerd Font";
+
font-family-bold = "BlexMono Nerd Font Bold";
+
font-family-italic = "BlexMono Nerd Font Italic";
+
font-family-bold-italic = "BlexMono Nerd Font Bold Italic";
+
font-size = 14;
+
+
cursor-style = "block";
+
window-decoration = false;
+
+
clipboard-read = "allow";
+
clipboard-write = "allow";
+
clipboard-paste-protection = true;
+
+
shell-integration-features = "cursor,sudo,title";
+
auto-update = "off";
+
}
+1 -1
modules/home/programs/vscodium/default.nix
···
"python.experiments.enabled" = false;
"python.languageServer" = "Pylance";
"telemetry.telemetryLevel" = "off";
-
"terminal.external.linuxExec" = "kitty";
"update.mode" = "none";
"update.showReleaseNotes" = false;
"workbench.colorTheme" = "Catppuccin Mocha";
···
"python.experiments.enabled" = false;
"python.languageServer" = "Pylance";
"telemetry.telemetryLevel" = "off";
+
"terminal.external.linuxExec" = "ghostty";
"update.mode" = "none";
"update.showReleaseNotes" = false;
"workbench.colorTheme" = "Catppuccin Mocha";
+4 -4
modules/home/wayland/sway.nix
···
xdgAutostart = true;
};
config = {
-
terminal = "${pkgs.kitty}/bin/kitty";
-
menu = "exec ${term} --detach --class=launcher -o initial_window_height=500 -o initial_window_width=500 -o font_size=16 ${pkgs.sway-launcher-desktop}/bin/sway-launcher-desktop";
modifier = "Mod4";
bars = [ { command = "true"; } ];
focus = {
···
};
}
{
-
command = "floating enable, sticky enable, resize set 30 ppt 50 ppt, border pixel 4";
criteria = {
-
app_id = "^launcher$";
};
}
{
···
xdgAutostart = true;
};
config = {
+
terminal = lib.getExe pkgs.ghostty;
+
menu = "exec ${term} --class=py.floating --window-height=15 --window-width=10 --font-size=16 -e ${pkgs.sway-launcher-desktop}/bin/sway-launcher-desktop";
modifier = "Mod4";
bars = [ { command = "true"; } ];
focus = {
···
};
}
{
+
command = "floating enable, sticky enable, resize set 20 ppt 40 ppt, border pixel 4";
criteria = {
+
app_id = "^py.floating$";
};
}
{