add kitty; add android-studio@unstable

This commit is contained in:
kagura 2024-09-07 09:32:10 +08:00
parent 3fdde0cacf
commit 9ed028ccd0
2 changed files with 39 additions and 3 deletions

16
config/kitty.conf Normal file
View file

@ -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

View file

@ -1,6 +1,10 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
let let
unstableTarball =
fetchTarball
"https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz";
basicPackages = with pkgs; [ basicPackages = with pkgs; [
# Zsh packages # Zsh packages
zsh zsh
@ -18,8 +22,8 @@ let
vlc vlc
]; ];
nixosOnlyPackages = with pkgs; [ nixosOnlyPackages = with pkgs; [
kitty kitty # On other platforms this cause OpenGL Error
# Dev tools # Dev tools
rustup rustup
clang-tools clang-tools
@ -46,16 +50,32 @@ in
# release notes. # release notes.
home.stateVersion = "24.05"; # Please read the comment before changing. 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 # The home.packages option allows you to install Nix packages into your
# environment. # environment.
home.packages = if (builtins.pathExists /etc/NIXOS) then home.packages = if (builtins.pathExists /etc/NIXOS) then
(basicPackages) ++ (nixosOnlyPackages) (basicPackages) ++ (nixosOnlyPackages) ++ (with pkgs; [
# Unstable packages here
unstable.android-studio
])
else (basicPackages) ++ (otherOnlyPackages); else (basicPackages) ++ (otherOnlyPackages);
# Home Manager is pretty good at managing dotfiles. The primary way to manage # Home Manager is pretty good at managing dotfiles. The primary way to manage
# plain files is through 'home.file'. # plain files is through 'home.file'.
home.file = { home.file = {
".config/fuzzel/fuzzel.ini".source = ./config/fuzzel.ini; ".config/fuzzel/fuzzel.ini".source = ./config/fuzzel.ini;
".config/kitty/kitty.conf".source = ./config/kitty.conf;
}; };
home.sessionVariables = { home.sessionVariables = {