add fonts

This commit is contained in:
danny 2024-12-14 00:15:35 +08:00
parent 49a3a1128a
commit d03507a3fa
5 changed files with 17 additions and 6 deletions

View file

@ -12,8 +12,8 @@
{ self, nixpkgs-unstable, nixpkgs, ... }@inputs: { self, nixpkgs-unstable, nixpkgs, ... }@inputs:
let let
system = "x86_64-linux"; system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; }; pkgs = nixpkgs.legacyPackages.${system};
pkgsUnstable = import nixpkgs-unstable { inherit system; }; pkgsUnstable = nixpkgs-unstable.legacyPackages.${system};
in { in {
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixfmt-rfc-style; formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixfmt-rfc-style;
nixosConfigurations.dn-nix = nixpkgs.lib.nixosSystem { nixosConfigurations.dn-nix = nixpkgs.lib.nixosSystem {

View file

@ -49,7 +49,7 @@ bind = $mainMod SHIFT, h, movewindow, l
bind = $mainMod SHIFT, k, movewindow, u bind = $mainMod SHIFT, k, movewindow, u
bind = $mainMod SHIFT, j, movewindow, d bind = $mainMod SHIFT, j, movewindow, d
bind = $mainMod, f, exec, opera bind = $mainMod, f, exec, firefox
# Move/resize windows with mainMod + LMB/RMB and dragging # Move/resize windows with mainMod + LMB/RMB and dragging
bindm = $mainMod, mouse:272, movewindow bindm = $mainMod, mouse:272, movewindow

View file

@ -1,6 +1,6 @@
{ {
home.sessionVariables = { home.sessionVariables = {
BROWSER = "opera"; BROWSER = "firefox";
EDITOR = "nvim"; EDITOR = "nvim";
TERMINAL = "kitty"; TERMINAL = "kitty";
NIXOS_OZONE_WL = "1"; NIXOS_OZONE_WL = "1";

View file

@ -3,8 +3,9 @@
{ {
home.packages = [ home.packages = [
pkgs.vscode pkgs.vscode
pkgs.opera # pkgs.opera
pkgs.discord pkgs.discord
pkgs.firefox
# Dev stuff # Dev stuff
pkgs.gcc pkgs.gcc

View file

@ -4,7 +4,17 @@
fonts.packages = with pkgs; [ fonts.packages = with pkgs; [
font-awesome font-awesome
jetbrains-mono jetbrains-mono
noto-fonts-cjk-sans
noto-fonts-cjk-serif
(nerdfonts.override { fonts = [ "JetBrainsMono" ]; }) (nerdfonts.override { fonts = [ "CascadiaCode" ]; })
]; ];
fonts.fontconfig = {
defaultFonts = {
serif = [ "CaskaydiaCove Nerd Font" "Noto Sans CJK" ];
sansSerif = [ "CaskaydiaCove Nerd Font" "Noto Sans CJK" ];
monospace = [ "CaskaydiaCove Nerd Font Mono" ];
};
};
} }