From fa7041ff8bde6c5288ad55db6b0d61ed593bbccc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2E=20Fernando=20S=C3=A1nchez?= Date: Tue, 23 Jan 2024 16:25:59 +0100 Subject: [PATCH] added home-manager --- alacritty/.config/alacritty/alacritty.toml | 2 +- alacritty/.config/alacritty/alacritty.yml | 8 ++++-- fish/.config/fish/config.fish | 1 + homemanager/.config/home-manager/home.nix | 33 +++++++++++++++++++++- kitty/.config/kitty/open-actions.conf | 8 ++++++ wezterm/.wezterm.lua | 16 +++++++++++ 6 files changed, 63 insertions(+), 5 deletions(-) create mode 100644 kitty/.config/kitty/open-actions.conf create mode 100644 wezterm/.wezterm.lua diff --git a/alacritty/.config/alacritty/alacritty.toml b/alacritty/.config/alacritty/alacritty.toml index 65d393c..18808c9 100644 --- a/alacritty/.config/alacritty/alacritty.toml +++ b/alacritty/.config/alacritty/alacritty.toml @@ -5,7 +5,7 @@ y = 15 [font] [font.normal] -family = "DejaVu Sans Mono" +family = "IosevkaTerm" style = "Regular" [shell] diff --git a/alacritty/.config/alacritty/alacritty.yml b/alacritty/.config/alacritty/alacritty.yml index 2aca1f8..cd47332 100644 --- a/alacritty/.config/alacritty/alacritty.yml +++ b/alacritty/.config/alacritty/alacritty.yml @@ -97,9 +97,11 @@ font: # - (macOS) Menlo # - (Linux/BSD) monospace # - (Windows) Consolas - # family: MesloLGS NF - # family: Hack - family: DejaVu Sans Mono + # family: Hack Nerd Font + # family: DejaVuSansM Nerd Font + # family: FiraCode Nerd Font + # family: IosevkaTerm Nerd Font + family: CaskaydiaCove NFM # The `style` can be specified to pick a specific face. style: Regular diff --git a/fish/.config/fish/config.fish b/fish/.config/fish/config.fish index ab8b03c..9e09e47 100644 --- a/fish/.config/fish/config.fish +++ b/fish/.config/fish/config.fish @@ -1,2 +1,3 @@ set -U fish_greeting +set -g -x NIX_PATH "/home/j/.nix-defexpr/channels/:/nix/var/nix/profiles/per-user/root/channels" starship init fish | source diff --git a/homemanager/.config/home-manager/home.nix b/homemanager/.config/home-manager/home.nix index addd19c..7daa03e 100644 --- a/homemanager/.config/home-manager/home.nix +++ b/homemanager/.config/home-manager/home.nix @@ -7,6 +7,13 @@ in home.username = "j"; home.homeDirectory = "/home/j"; + nixpkgs = { + config = { + allowUnfree = true; + allowUnfreePredicate = (_: true); + }; + }; + # This value determines the Home Manager release that your # configuration is compatible with. This helps avoid breakage # when a new Home Manager release introduces backwards @@ -21,10 +28,14 @@ in programs.home-manager.enable = true; home.packages = [ pkgs.htop + pkgs.zoom-us pkgs.fortune pkgs.tmux pkgs.git + pkgs.git-lfs + pkgs.hugo pkgs.fish + pkgs.fd pkgs.helix pkgs.starship pkgs.ripgrep @@ -32,9 +43,28 @@ in pkgs.ansible pkgs.ranger pkgs.sshpass + pkgs.jq + pkgs.bat + pkgs.davfs2 + pkgs.pandoc + pkgs.rustup + #pkgs.texlive + # pkgs.texlive.combine { + # inherit (texlive) xcolor + # } + pkgs.wl-clipboard nixgl.auto.nixGLDefault + #(pkgs.python311.withPackages (p: with p; [ + #jupyterlab + #matplotlib + #pandas + #openpyxl + #])) pkgs.alacritty - (pkgs.nerdfonts.override { fonts = [ "FiraCode" "DejaVuSansMono" ]; }) + pkgs.wezterm + pkgs.kitty + pkgs.zellij + (pkgs.nerdfonts.override { fonts = [ "Iosevka" "IosevkaTerm" "Hack" "CascadiaCode" "FiraCode" "DejaVuSansMono" ]; }) ]; fonts.fontconfig.enable = true; @@ -47,4 +77,5 @@ in lightline-vim ]; }; + services.owncloud-client.enable = true; } diff --git a/kitty/.config/kitty/open-actions.conf b/kitty/.config/kitty/open-actions.conf new file mode 100644 index 0000000..c6e04b0 --- /dev/null +++ b/kitty/.config/kitty/open-actions.conf @@ -0,0 +1,8 @@ +protocol file +mime image/* +action launch --type=overlay kitten icat --hold ${FILE_PATH} + +protocol file +ext log +action launch --title ${FILE} --type=os-window tail -f ${FILE_PATH} +action change_font_size current -2 diff --git a/wezterm/.wezterm.lua b/wezterm/.wezterm.lua new file mode 100644 index 0000000..b03ac31 --- /dev/null +++ b/wezterm/.wezterm.lua @@ -0,0 +1,16 @@ +local wezterm = require 'wezterm' +local config = {} + +config.font = wezterm.font 'Iosevka Nerd Font' +config.show_tab_index_in_tab_bar = true + +-- wezterm.on('update-right-status', function(window, pane) +-- window:set_left_status 'left' +-- window:set_right_status 'right' +-- end) + +config.use_fancy_tab_bar = true +config.show_tabs_in_tab_bar = false +config.show_new_tab_button_in_tab_bar = false + +return config