updates for darwin

This commit is contained in:
2026-03-21 18:57:48 -07:00
parent a26c3d11a0
commit 98a622c479
4 changed files with 29 additions and 22 deletions

View File

@@ -5,17 +5,7 @@
hostname,
hostTypes,
...
}: let
list-keybinds = pkgs.writeShellScriptBin "list-keybinds" ''
hyprctl binds -j | ${pkgs.jq}/bin/jq -r '.[] |
select(.dispatcher != "") |
"[\(.modmask_str // "NONE")] + \(.key) \(.dispatcher) \(.arg // "")"
' | ${pkgs.rofi}/bin/rofi -dmenu \
-i \
-p "Keybinds" \
-theme-str 'window {width: 60%;}'
'';
in {
}: {
imports = [
./direnv.nix
# ./custom/custom.nix
@@ -43,8 +33,6 @@ in {
basalt
btop
cpufetch
cpuid
cpu-x
curl
dig
docker
@@ -67,7 +55,6 @@ in {
lazyjournal
manga-tui
mcat
netop
nettools
nix-du
nixfmt
@@ -89,7 +76,6 @@ in {
yazi
yt-dlp
zstd
list-keybinds
]
# Desktop-specific packages (Linux desktops and macOS)
++ lib.optionals (!(hostTypes.isServer hostname)) (with pkgs; [
@@ -102,21 +88,27 @@ in {
])
# Server-specific packages
++ lib.optionals (hostTypes.isServer hostname) (with pkgs; [
cpu-x
cpuid
ffmpeg-full
gparted
netop
parted
plocate
tailscale
tlp
traceroute
ffmpeg-full
pkgs-unstable.witr
])
# Linux desktop packages
++ lib.optionals (hostTypes.isLinuxDesktop hostname) (with pkgs; [
plocate
tlp
swaynotificationcenter
cpu-x
cpuid
gparted
netop
plocate
swaynotificationcenter
tlp
nerd-fonts.jetbrains-mono
nerd-fonts.hack
nerd-fonts.fira-code

View File

@@ -1,4 +1,5 @@
{
{pkgs, lib, ...}:
lib.mkIf (!pkgs.stdenv.isDarwin) {
programs.newsboat = {
enable = true;
urls = [

View File

@@ -4,7 +4,17 @@
hostTypes,
lib,
...
}: {
}: let
list-keybinds = pkgs.writeShellScriptBin "list-keybinds" ''
hyprctl binds -j | ${pkgs.jq}/bin/jq -r '.[] |
select(.dispatcher != "") |
"[\(.modmask_str // "NONE")] + \(.key) \(.dispatcher) \(.arg // "")"
' | ${pkgs.rofi}/bin/rofi -dmenu \
-i \
-p "Keybinds" \
-theme-str 'window {width: 60%;}'
'';
in {
imports =
# Desktop programs (exclude servers)
lib.optionals (hostTypes.isLinuxDesktop hostname) [
@@ -122,7 +132,10 @@
openrazer-daemon
polychromatic
# vscode
]);
])
++ lib.optionals (hostTypes.isLinuxDesktop hostname) [
list-keybinds
];
services.swaync = lib.mkIf (hostTypes.isLinuxDesktop hostname) {
enable = true;

View File

@@ -80,6 +80,7 @@
"imhex"
"jellyfin-media-player"
"jordanbaird-ice"
#"lm-studio"
"localsend"
"melonds"
"moonlight"