Clean up duplicate keys
parent
1474cc5238
commit
cb6fcae894
|
@ -18,9 +18,11 @@
|
||||||
|
|
||||||
homebrew = {
|
homebrew = {
|
||||||
enable = flake.inputs.homebrew-enabled.value;
|
enable = flake.inputs.homebrew-enabled.value;
|
||||||
onActivation.autoUpdate = true;
|
onActivation = {
|
||||||
onActivation.upgrade = true;
|
autoUpdate = true;
|
||||||
onActivation.cleanup = "uninstall";
|
upgrade = true;
|
||||||
|
cleanup = "uninstall";
|
||||||
|
};
|
||||||
global.brewfile = true;
|
global.brewfile = true;
|
||||||
|
|
||||||
taps = [ "homebrew/cask-versions" "homebrew/services" ];
|
taps = [ "homebrew/cask-versions" "homebrew/services" ];
|
||||||
|
|
|
@ -4,19 +4,21 @@ let
|
||||||
tomlFormat = pkgs.formats.toml { };
|
tomlFormat = pkgs.formats.toml { };
|
||||||
in {
|
in {
|
||||||
options.programs.helix = {
|
options.programs.helix = {
|
||||||
autoTheme.enable =
|
autoTheme = {
|
||||||
|
enable =
|
||||||
lib.mkEnableOption "Automatically switch helix theme with night mode";
|
lib.mkEnableOption "Automatically switch helix theme with night mode";
|
||||||
|
|
||||||
autoTheme.light = lib.mkOption {
|
light = lib.mkOption {
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
description = "Light mode theme";
|
description = "Light mode theme";
|
||||||
};
|
};
|
||||||
|
|
||||||
autoTheme.dark = lib.mkOption {
|
dark = lib.mkOption {
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
description = "Dark mode theme";
|
description = "Dark mode theme";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
config = lib.mkIf (cfg.enable && cfg.autoTheme.enable) {
|
config = lib.mkIf (cfg.enable && cfg.autoTheme.enable) {
|
||||||
xdg.configFile = {
|
xdg.configFile = {
|
||||||
|
|
|
@ -2,11 +2,12 @@
|
||||||
let font = "Rec Mono Duotone";
|
let font = "Rec Mono Duotone";
|
||||||
in {
|
in {
|
||||||
imports = [ ./extras/kitty/auto-theme.nix ./extras/kitty/nerd-font.nix ];
|
imports = [ ./extras/kitty/auto-theme.nix ./extras/kitty/nerd-font.nix ];
|
||||||
programs.kitty.enable = true;
|
programs.kitty = {
|
||||||
|
enable = true;
|
||||||
# using kitty from homebrew
|
# using kitty from homebrew
|
||||||
programs.kitty.package = pkgs.emptyDirectory;
|
package = pkgs.emptyDirectory;
|
||||||
|
|
||||||
programs.kitty.settings = {
|
settings = {
|
||||||
font_family = font;
|
font_family = font;
|
||||||
bold_font = "${font} Bold";
|
bold_font = "${font} Bold";
|
||||||
italic_font = "${font} Italic";
|
italic_font = "${font} Italic";
|
||||||
|
@ -28,9 +29,20 @@ in {
|
||||||
|
|
||||||
# shell integration is manually enabled for fish
|
# shell integration is manually enabled for fish
|
||||||
shell_integration = "disabled";
|
shell_integration = "disabled";
|
||||||
} // lib.optionalAttrs pkgs.stdenv.isDarwin { macos_option_as_alt = "both"; };
|
} // lib.optionalAttrs pkgs.stdenv.isDarwin {
|
||||||
|
macos_option_as_alt = "both";
|
||||||
|
};
|
||||||
|
|
||||||
programs.fish.interactiveShellInit = ''
|
useSymbolsFromNerdFont = "CaskaydiaCove Nerd Font";
|
||||||
|
colors = {
|
||||||
|
enable = true;
|
||||||
|
dark-name = "rose-pine";
|
||||||
|
light-name = "rose-pine-dawn";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.fish = {
|
||||||
|
interactiveShellInit = ''
|
||||||
# Manually enable shell integration
|
# Manually enable shell integration
|
||||||
if set -q KITTY_INSTALLATION_DIR
|
if set -q KITTY_INSTALLATION_DIR
|
||||||
set --global KITTY_SHELL_INTEGRATION enabled
|
set --global KITTY_SHELL_INTEGRATION enabled
|
||||||
|
@ -39,18 +51,12 @@ in {
|
||||||
end
|
end
|
||||||
set-term-colors
|
set-term-colors
|
||||||
'';
|
'';
|
||||||
programs.fish.shellAliases = {
|
shellAliases = {
|
||||||
s = "kitty +kitten ssh";
|
s = "kitty +kitten ssh";
|
||||||
e = "edit-in-kitty";
|
e = "edit-in-kitty";
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.kitty.useSymbolsFromNerdFont = "CaskaydiaCove Nerd Font";
|
functions.set-term-colors = {
|
||||||
programs.kitty.colors = {
|
|
||||||
enable = true;
|
|
||||||
dark-name = "rose-pine";
|
|
||||||
light-name = "rose-pine-dawn";
|
|
||||||
};
|
|
||||||
programs.fish.functions.set-term-colors = {
|
|
||||||
body = ''
|
body = ''
|
||||||
if test "$term_background" = light
|
if test "$term_background" = light
|
||||||
term-light
|
term-light
|
||||||
|
@ -60,4 +66,5 @@ in {
|
||||||
'';
|
'';
|
||||||
onVariable = "term_background";
|
onVariable = "term_background";
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,11 +3,13 @@ let inherit (lib) mkDefault;
|
||||||
in {
|
in {
|
||||||
programs.starship.settings = {
|
programs.starship.settings = {
|
||||||
aws.symbol = mkDefault " ";
|
aws.symbol = mkDefault " ";
|
||||||
battery.full_symbol = mkDefault "";
|
battery = {
|
||||||
battery.charging_symbol = mkDefault "";
|
full_symbol = mkDefault "";
|
||||||
battery.discharging_symbol = mkDefault "";
|
charging_symbol = mkDefault "";
|
||||||
battery.unknown_symbol = mkDefault "";
|
discharging_symbol = mkDefault "";
|
||||||
battery.empty_symbol = mkDefault "";
|
unknown_symbol = mkDefault "";
|
||||||
|
empty_symbol = mkDefault "";
|
||||||
|
};
|
||||||
cmake.symbol = mkDefault "△ ";
|
cmake.symbol = mkDefault "△ ";
|
||||||
conda.symbol = mkDefault " ";
|
conda.symbol = mkDefault " ";
|
||||||
crystal.symbol = mkDefault " ";
|
crystal.symbol = mkDefault " ";
|
||||||
|
@ -21,17 +23,19 @@ in {
|
||||||
gcloud.symbol = mkDefault " ";
|
gcloud.symbol = mkDefault " ";
|
||||||
git_branch.symbol = mkDefault " ";
|
git_branch.symbol = mkDefault " ";
|
||||||
git_commit.tag_symbol = mkDefault " ";
|
git_commit.tag_symbol = mkDefault " ";
|
||||||
git_status.format = mkDefault "([$all_status$ahead_behind]($style) )";
|
git_status = {
|
||||||
git_status.conflicted = mkDefault " ";
|
format = mkDefault "([$all_status$ahead_behind]($style) )";
|
||||||
git_status.ahead = mkDefault " ";
|
conflicted = mkDefault " ";
|
||||||
git_status.behind = mkDefault " ";
|
ahead = mkDefault " ";
|
||||||
git_status.diverged = mkDefault " ";
|
behind = mkDefault " ";
|
||||||
git_status.untracked = mkDefault " ";
|
diverged = mkDefault " ";
|
||||||
git_status.stashed = mkDefault " ";
|
untracked = mkDefault " ";
|
||||||
git_status.modified = mkDefault " ";
|
stashed = mkDefault " ";
|
||||||
git_status.staged = mkDefault " ";
|
modified = mkDefault " ";
|
||||||
git_status.renamed = mkDefault " ";
|
staged = mkDefault " ";
|
||||||
git_status.deleted = mkDefault " ";
|
renamed = mkDefault " ";
|
||||||
|
deleted = mkDefault " ";
|
||||||
|
};
|
||||||
golang.symbol = mkDefault " ";
|
golang.symbol = mkDefault " ";
|
||||||
helm.symbol = mkDefault "⎈ ";
|
helm.symbol = mkDefault "⎈ ";
|
||||||
hg_branch.symbol = mkDefault " ";
|
hg_branch.symbol = mkDefault " ";
|
||||||
|
@ -53,11 +57,13 @@ in {
|
||||||
ruby.symbol = mkDefault " ";
|
ruby.symbol = mkDefault " ";
|
||||||
rust.symbol = mkDefault " ";
|
rust.symbol = mkDefault " ";
|
||||||
shlvl.symbol = mkDefault " ";
|
shlvl.symbol = mkDefault " ";
|
||||||
status.symbol = mkDefault " ";
|
status = {
|
||||||
status.not_executable_symbol = mkDefault " ";
|
symbol = mkDefault " ";
|
||||||
status.not_found_symbol = mkDefault " ";
|
not_executable_symbol = mkDefault " ";
|
||||||
status.sigint_symbol = mkDefault " ";
|
not_found_symbol = mkDefault " ";
|
||||||
status.signal_symbol = mkDefault " ";
|
sigint_symbol = mkDefault " ";
|
||||||
|
signal_symbol = mkDefault " ";
|
||||||
|
};
|
||||||
swift.symbol = mkDefault " ";
|
swift.symbol = mkDefault " ";
|
||||||
terraform.symbol = mkDefault "𝗧 ";
|
terraform.symbol = mkDefault "𝗧 ";
|
||||||
vagrant.symbol = mkDefault "𝗩 ";
|
vagrant.symbol = mkDefault "𝗩 ";
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
disabled = ["repeated_keys"]
|
|
Loading…
Reference in New Issue