diff --git a/config/kitty.conf b/config/kitty.conf new file mode 100644 index 0000000..3548236 --- /dev/null +++ b/config/kitty.conf @@ -0,0 +1,16 @@ +# Fonts +font_family monospace +bold_font auto +italic_font auto +bold_italic_font auto + +font_size 11.5 + +# Terminal bell +enable_audio_bell no +bell_on_tab "🔔 " + +# Hyperlink +mouse_map left click ungrabbed mouse_handle_click prompt +mouse_map shift+left click ungrabbed mouse_handle_click link + diff --git a/home.nix b/home.nix index 9d7ef3a..b40931c 100644 --- a/home.nix +++ b/home.nix @@ -1,6 +1,10 @@ { config, pkgs, ... }: let + unstableTarball = + fetchTarball + "https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz"; + basicPackages = with pkgs; [ # Zsh packages zsh @@ -18,8 +22,8 @@ let vlc ]; nixosOnlyPackages = with pkgs; [ - kitty - + kitty # On other platforms this cause OpenGL Error + # Dev tools rustup clang-tools @@ -46,16 +50,32 @@ in # release notes. home.stateVersion = "24.05"; # Please read the comment before changing. + nixpkgs.config = { + allowUnfree = true; + packageOverrides = pkgs: with pkgs; { + unstable = import unstableTarball { + config = config.nixpkgs.config; + }; + }; + }; + + + # The home.packages option allows you to install Nix packages into your # environment. home.packages = if (builtins.pathExists /etc/NIXOS) then - (basicPackages) ++ (nixosOnlyPackages) + (basicPackages) ++ (nixosOnlyPackages) ++ (with pkgs; [ + # Unstable packages here + unstable.android-studio + ]) + else (basicPackages) ++ (otherOnlyPackages); # Home Manager is pretty good at managing dotfiles. The primary way to manage # plain files is through 'home.file'. home.file = { ".config/fuzzel/fuzzel.ini".source = ./config/fuzzel.ini; + ".config/kitty/kitty.conf".source = ./config/kitty.conf; }; home.sessionVariables = {