Merge remote-tracking branch 'refs/remotes/origin/master'

This commit is contained in:
kagura114 2024-09-08 11:17:05 +08:00
commit e8ea1c4ba6
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, ... }:
let
unstableTarball =
fetchTarball
"https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz";
basicPackages = with pkgs; [
# Zsh packages
zsh
@ -18,7 +22,7 @@ let
vlc
];
nixosOnlyPackages = with pkgs; [
kitty
kitty # On other platforms this cause OpenGL Error
# Dev tools
rustup
@ -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 = {