{ lib, pkgs, namespace, ... }: let inherit (lib.${namespace}) enabled disabled; shellAliases = { update-boot = "sudo nixos-rebuild boot --max-jobs 10 --build-host admin@10.0.1.3"; update-switch = "sudo nixos-rebuild switch --max-jobs 10 --build-host admin@10.0.1.3"; update-flake = "nix flake update mac-nixpkgs mac-nixos-apple-silicon mac-home-manager mac-impermanence mac-sops-nix --flake /etc/nixos"; update-nas = "nixos-rebuild switch --use-remote-sudo --target-host admin@10.0.1.3 --build-host admin@10.0.1.3 --flake ~/nix-config#jallen-nas"; }; # Displays display = { input = "eDP-1"; resolution = "3456x2234"; refreshRate = "60.00000"; }; in { home.username = "matt"; home.homeDirectory = "/home/matt"; home.stateVersion = "23.11"; ${namespace} = { programs.hyprland = { enable = true; primaryDisplay = "eDP-1"; debug.disableScaleChecks = true; monitorv2 = [ { name = display.input; mode = "${display.resolution}@${display.refreshRate}"; position = "0x0"; scale = 1.25; extra = [ "bitdepth" "10" "cm" "hdr" "sdrbrightness" "1.2" "sdrsaturation" "0.98" ]; } ]; workspace = [ "name:firefox, monitor:${display.input}, default:false, special, class:(.*firefox.*)" "name:discord, monitor:${display.input}, default:true, special, title:(.*vesktop.*), title:(.*Apple Music.*)" "name:steam, monitor:${display.input}, default:false, special, class:(.*[Ss]team.*)" ]; windowRule = [ "size 2160 3356, tag:horizonrdp" ]; hyprpaper = { wallpaperPath = "/run/wallpaper.jpg"; }; keybinds = { bind = [ "$mod, A, exec, chromium --app=\"https://music.apple.com\"" ]; }; defaultApps = { browser = pkgs.firefox; }; }; programs = { btop = enabled; kitty = { enable = true; }; mako = { enable = true; }; nwg-dock = enabled; nwg-drawer = enabled; nwg-panel = { enable = true; defaultApps = { browser = pkgs.firefox; }; }; waybar = { enable = true; layer = "bottom"; temperature = { cpu = enabled; gpu = enabled; }; extraModules = { "custom/lights" = { tooltip = false; exec = "waybar-hass --get_light light.living_room_lights"; interval = "once"; format = "{text}"; # "󱉓"; on-click = "waybar-hass --toggle_light light.living_room_lights"; return-type = "json"; }; }; extraModulesStyle = '' #custom-lights { color: @base0C; opacity: 0.85; background-color: @base00; } #custom-lights:hover { background: @base03; } ''; windowOffset = 75; }; wlogout = enabled; wofi = enabled; }; }; home.packages = with pkgs; [ pkgs.${namespace}.bolt-launcher # pkgs.${namespace}.librepods iw iwd orca-slicer vscodium ]; programs = { password-store = enabled; zsh.shellAliases = shellAliases; }; }