From 2adf1b010baa9aa7daeb146b083ae1e5f43ad501 Mon Sep 17 00:00:00 2001 From: Max Koon Date: Tue, 20 Jan 2026 12:40:15 -0500 Subject: [PATCH] feat: add music and zsh and zathura improvements --- .../desktop/hyprland/waybar/config.jsonc | 2 +- host/common/optional/music.nix | 27 +++++++++++++++++++ host/{max => common/optional}/proton.nix | 0 host/max/default.nix | 11 ++------ host/max/home/terminal.nix | 2 ++ host/max/home/zathura.nix | 2 -- 6 files changed, 32 insertions(+), 12 deletions(-) create mode 100644 host/common/optional/music.nix rename host/{max => common/optional}/proton.nix (100%) diff --git a/home/common/optional/desktop/hyprland/waybar/config.jsonc b/home/common/optional/desktop/hyprland/waybar/config.jsonc index 2de433c..e0df961 100644 --- a/home/common/optional/desktop/hyprland/waybar/config.jsonc +++ b/home/common/optional/desktop/hyprland/waybar/config.jsonc @@ -47,7 +47,7 @@ "custom/countdown": { "exec": "echo $(( ($(date +%s) - $(date -d 'June 6, 2026' +%s)) / 86400 ))", "format": "{} ", - "interval": 3600 + "interval": 60 }, "clock": { "format": "{:L%A %I:%M}", diff --git a/host/common/optional/music.nix b/host/common/optional/music.nix new file mode 100644 index 0000000..00ae1e5 --- /dev/null +++ b/host/common/optional/music.nix @@ -0,0 +1,27 @@ +{ pkgs, ... }: +{ + environment.systemPackages = with pkgs; [ + mpc + ncmpcpp + ]; + + services.mpd = { + enable = true; + musicDirectory = "/home/max/media/music"; + user = "max"; + extraConfig = '' + audio_output { + type "pipewire" + name "Pipewire Ouput" + } + ''; + }; + + systemd = { + services = { + mpd.environment = { + XDG_RUNTIME_DIR = "/run/user/1001"; + }; + }; + }; +} diff --git a/host/max/proton.nix b/host/common/optional/proton.nix similarity index 100% rename from host/max/proton.nix rename to host/common/optional/proton.nix diff --git a/host/max/default.nix b/host/max/default.nix index a5f7d9b..301b2e5 100644 --- a/host/max/default.nix +++ b/host/max/default.nix @@ -8,18 +8,13 @@ ./sops.nix ../common/optional/desktop/hyprland.nix - # ../common/optional/desktop/cosmic.nix ../common/optional/font.nix - ../common/optional/yubikey.nix - ../common/optional/browser.nix - - ../common/optional/locale.nix ../common/optional/email.nix - - ./proton.nix + ../common/optional/proton.nix + ../common/optional/music.nix ]; # Use the systemd-boot EFI boot loader. @@ -71,9 +66,7 @@ file just - # mpc libreoffice-qt - # ncmpcpp pkgs-unstable.signal-desktop-bin pkgs-unstable.gurk-rs diff --git a/host/max/home/terminal.nix b/host/max/home/terminal.nix index 181c061..177b943 100644 --- a/host/max/home/terminal.nix +++ b/host/max/home/terminal.nix @@ -48,6 +48,8 @@ autocd = true; initContent = '' + zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}' + fzf-project() { selected=$(find ~/dev -mindepth 2 -maxdepth 2 | sed 's|/home/max/dev/||' | fzf --delimiter '/' --nth 2) if [[ -n $selected ]]; then diff --git a/host/max/home/zathura.nix b/host/max/home/zathura.nix index 6c65ce4..81cea6a 100644 --- a/host/max/home/zathura.nix +++ b/host/max/home/zathura.nix @@ -2,8 +2,6 @@ programs.zathura = { enable = true; options = { - default-bg = "white"; - font = "Monocraft"; selection-clipboard = "clipboard"; }; };