From f27bc65d9a15fea4ca0c22c281d2f075ddce6d4a Mon Sep 17 00:00:00 2001 From: Adrian G L Date: Thu, 4 Sep 2025 16:35:23 +0200 Subject: [PATCH] huh --- home/fonts.nix | 53 +++++++++++++++++++++++++++++++++++++++++++++++++ home/gunalx.nix | 1 + home/niri.nix | 4 ++-- home/python.nix | 5 +++++ home/waybar.nix | 2 +- 5 files changed, 62 insertions(+), 3 deletions(-) create mode 100644 home/fonts.nix diff --git a/home/fonts.nix b/home/fonts.nix new file mode 100644 index 0000000..4caa9dc --- /dev/null +++ b/home/fonts.nix @@ -0,0 +1,53 @@ +{ pkgs, lib, config, ... }: + +{ + # Enable fontconfig (required for font settings) + fonts.fontconfig.enable = true; + + # Install fonts + home.packages = with pkgs; [ + + # Main fonts + notonoto + noto-fonts + noto-fonts-cjk-sans + noto-fonts-cjk-serif + + #emoji + noto-fonts-color-emoji + noto-fonts-monochrome-emoji + noto-fonts-emoji-blob-bin + + nerd-fonts.noto + nerd-fonts.hack + + zpix-pixel-font + font-awesome_4 + font-awesome_5 + + ]; + + # Set default font families + fonts.fontconfig.defaultFonts = { + monospace = [ + "Notonoto Mono" + "Noto Mono" + "FiraCode Nerd Font" + ]; + sansSerif = [ + "Notonoto Sans" + "Noto Sans" + ]; + serif = [ + "Notonoto Serif" + "Noto Serif" + ]; + emoji = [ + "Noto Color Emoji" + "Noto Emoji" + "Noto Emoji Blob" + "Noto Monochrome Emoji" + ]; + }; +} + diff --git a/home/gunalx.nix b/home/gunalx.nix index 85df3ea..799a1cd 100644 --- a/home/gunalx.nix +++ b/home/gunalx.nix @@ -21,6 +21,7 @@ ./niri.nix ./wallpapers.nix ./swww.nix + ./fonts.nix #applications ./mako.nix diff --git a/home/niri.nix b/home/niri.nix index cb751a0..53e2227 100644 --- a/home/niri.nix +++ b/home/niri.nix @@ -234,8 +234,8 @@ let spawn-at-startup "xwayland-satellite" spawn-at-startup "mako" spawn-at-startup "swww-daemon" - spawn-at-startup "waybar" - spawn-at-startup "sh" "-c" "while true; do swww img -t random --transition-step 2 \"$(find ~/Pictures/wallpapers/ -type f | shuf -n 1)\"; sleep 270; done" + spawn-at-startup "sh" "-c" "while true; do waybar; done" //disabled to a systemd service. in a while because it sometimes crashes. + spawn-at-startup "sh" "-c" "while true; do swww img -f Nearest -t random --transition-step 2 \"$(find ~/Pictures/wallpapers/ -type f | shuf -n 1)\"; sleep 270; done" // Uncomment this line to ask the clients to omit their client-side decorations if possible. diff --git a/home/python.nix b/home/python.nix index da27eeb..2f3f1c0 100644 --- a/home/python.nix +++ b/home/python.nix @@ -1,6 +1,8 @@ {pkgs, ...}: { home.packages = [ (pkgs.python312.withPackages (ppkgs: [ + ppkgs.uv + ppkgs.pip ppkgs.numpy ppkgs.sympy ppkgs.scipy @@ -17,6 +19,9 @@ ppkgs.pillow ppkgs.keras ppkgs.tqdm + ppkgs.ipykernel ])) + + ]; } diff --git a/home/waybar.nix b/home/waybar.nix index d9bb253..e62da2c 100644 --- a/home/waybar.nix +++ b/home/waybar.nix @@ -102,7 +102,7 @@ in "pulseaudio": { "format": "{volume}% {icon}", "format-muted": "", - "format-icons": { "default": ["","",""] }, + "format-icons": { "default": ["🔈️","🔉","🔊"] }, "on-click": "pavucontrol" },