Compare commits

...
22 Commits
Author SHA1 Message Date
wymiller ff991bb092 mod: merge updates 2026-11-23 08:07:16 -05:00
wymiller f29268bc37 Merge remote-tracking branch 'origin' into desktops 2026-11-23 00:59:25 -05:00
gitea-actions[bot] a5275d87f5 chore: update flake lock 2026-11-22 07:06:18 +00:00
gitea-actions[bot] bd9677bcaf chore: update flake lock 2026-11-15 07:05:39 +00:00
gitea-actions[bot] 1cdf8c09b2 chore: update flake lock 2026-11-08 07:05:56 +00:00
wymiller fe8f05959c Merge remote-tracking branch 'origin' into desktops 2026-11-01 23:18:53 -05:00
wymiller 921c891b1f mod: nur overlays 2026-11-01 23:18:24 -05:00
wymiller c1d447dbf0 mod: misconfigured ports raubahn 2026-11-01 22:26:28 -05:00
wymiller 02b8a61e23 mod: misconfigured ports 2026-11-01 22:25:27 -05:00
wymiller e565b41185 mod: udisks, misc stuff 2026-11-01 19:13:15 -05:00
gitea-actions[bot] 1d9a2d7345 chore: update flake lock 2026-11-01 07:05:22 +00:00
wymiller 943df76df5 Merge remote-tracking branch 'origin' into desktops 2026-10-25 14:19:40 -04:00
wymiller 9ab3fb373a add: ollama waybar integration, modified cloud config to add ollama systemd service 2026-10-18 18:28:30 -04:00
wymiller 81cec030dc mod: screen capture
wip: want to do something different with this
2026-10-11 23:12:39 -04:00
wymiller b9ebc10f30 mod: change csharp lsp servers 2026-10-11 23:11:44 -04:00
wymiller 91ad28b207 mod: whitespace 2026-10-11 23:10:47 -04:00
wymiller 1e47ff812b mod: show public ip in waybar
on click to show
2026-10-11 23:10:30 -04:00
wymiller 744b773657 Merge remote-tracking branch 'origin' into desktops 2026-10-04 14:23:09 -04:00
wymiller 48999b0576 Merge remote-tracking branch 'origin' into desktops 2026-09-27 18:05:58 -04:00
wymiller b427889b06 add: desktop xdg integration 2026-09-23 18:43:38 -04:00
wymiller 9b60cdac2c Merge remote-tracking branch 'origin' into desktops 2026-09-22 15:27:38 -04:00
wymiller a387a4cd07 wip: added assortment of desktops
ai generated, needs some work/cleanup
2026-08-29 10:38:22 -04:00
18 changed files with 560 additions and 342 deletions

No files matched your search

-1
View File
@@ -218,7 +218,6 @@ default_border pixel 2
gaps inner 10px
# Applications
exec_always /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway
exec mako
#exec swww init
+14 -6
View File
@@ -2,7 +2,7 @@
"layer": "top",
"modules-left": ["sway/workspaces"],
"modules-center": ["clock"],
"modules-right": ["custom/playerctl", "custom/weather", "pulseaudio", "network", "tray"],
"modules-right": ["custom/playerctl", "custom/weather", "pulseaudio", "custom/network", "custom/ollama", "tray"],
"sway/workspaces": {
"disable-scroll": true,
"all-outputs": true,
@@ -34,14 +34,22 @@
"exec": "wttrbar --fahrenheit --main-indicator 'temp_F' --location 'Grand Rapids'",
"return-type": "json"
},
"network": {
"format-wifi": " {essid} ({signalStrength}%)",
"format-ethernet": " {ipaddr}",
"format-disconnected": "⚠ Disconnected",
"family": "ipv4",
"custom/network": {
"format": "{text}",
"return-type": "json",
"exec": "bash $HOME/.config/waybar/network.sh",
"on-click": "bash $HOME/.config/waybar/network.sh toggle",
"interval": 5,
"tooltip": false
},
"custom/ollama": {
"format": "{text}",
"return-type": "json",
"exec": "bash $HOME/.config/waybar/ollama.sh",
"on-click": "bash $HOME/.config/waybar/ollama.sh toggle",
"interval": 2,
"tooltip": true
},
"pulseaudio": {
"format": "{icon} {volume}%",
"format-bluetooth": "{icon} {volume}%",
+54
View File
@@ -0,0 +1,54 @@
#!/usr/bin/env bash
set -u
state_dir="${XDG_RUNTIME_DIR:-/tmp}/waybar-${UID}"
state_file="$state_dir/public-ip"
if [[ ${1:-} == toggle ]]; then
mkdir -p -m 700 "$state_dir"
if [[ -s $state_file ]]; then
: > "$state_file"
else
public_ip=$(curl -4fsS --max-time 5 https://wtfismyip.com/json 2>/dev/null |
jq -er '.YourFuckingIPAddress | select(type == "string") | split(".") |
select(length == 4 and all(.[]; test("^[0-9]{1,3}$") and (tonumber <= 255))) |
join(".")' 2>/dev/null) || exit 0
printf '%s\n' "$public_ip" > "$state_file"
fi
exit 0
fi
route=$(ip -4 route get 1.1.1.1 2>/dev/null) || route=
if [[ ! $route =~ [[:space:]]dev[[:space:]]([^[:space:]]+) ]]; then
jq -cn '{text: "⚠ Disconnected", class: "disconnected"}'
exit 0
fi
interface=${BASH_REMATCH[1]}
if [[ ! $route =~ [[:space:]]src[[:space:]]([0-9.]+) ]]; then
jq -cn '{text: "⚠ Disconnected", class: "disconnected"}'
exit 0
fi
local_ip=${BASH_REMATCH[1]}
if [[ -s $state_file ]]; then
jq -cn --rawfile ip "$state_file" '{text: (" " + ($ip | rtrimstr("\n"))), class: "public"}'
exit 0
fi
if [[ $(nmcli -g GENERAL.TYPE device show "$interface" 2>/dev/null) == wifi ]]; then
essid=$(nmcli -g GENERAL.CONNECTION device show "$interface" 2>/dev/null | head -n 1)
signal=$(nmcli -t -f IN-USE,SIGNAL device wifi list ifname "$interface" --rescan no 2>/dev/null |
awk -F: '$1 == "*" { print $2; exit }')
if [[ -n $essid && $essid != -- ]]; then
text="$essid"
[[ -n $signal ]] && text="${text} (${signal}%)"
else
text="$local_ip"
fi
else
text="$local_ip"
fi
jq -cn --arg text "$text" '{text: $text, class: "connected"}'
+24
View File
@@ -0,0 +1,24 @@
#!/usr/bin/env bash
set -u
service=ollama.service
# The shared Waybar config is also used by hosts without Ollama.
if ! systemctl --user cat "$service" >/dev/null 2>&1; then
exit 0
fi
if [[ ${1:-} == toggle ]]; then
if systemctl --user is-active --quiet "$service"; then
systemctl --user stop "$service"
else
systemctl --user start "$service"
fi
exit $?
fi
if systemctl --user is-active --quiet "$service"; then
printf '%s\n' '{"text":"<span foreground=\"#9ece6a\">●</span> Local AI","tooltip":"Ollama is running. Click to stop it.","class":"running"}'
else
printf '%s\n' '{"text":"<span foreground=\"#f7768e\">●</span> Local AI","tooltip":"Ollama is stopped. Click to start it.","class":"stopped"}'
fi
+4 -3
View File
@@ -31,11 +31,12 @@ window#waybar {
#cpu,
#memory,
#pulseaudio,
#network,
#custom-network,
#custom-ollama,
#battery,
#clock,
#custom-playerctl {
padding: 0 10px;
padding: 0 5px;
margin: 0 5px;
}
@@ -65,7 +66,7 @@ window#waybar {
animation-direction: alternate;
}
#network.disconnected {
#custom-network.disconnected {
color: #cc241d;
}
Generated
+85 -173
View File
@@ -9,11 +9,11 @@
"rust-overlay": "rust-overlay"
},
"locked": {
"lastModified": 1792853286,
"narHash": "sha256-l/Oh5k1NQqQuwh4gBF3VcmCF0WGiCT/LqfvY5huhOq4=",
"lastModified": 1794424204,
"narHash": "sha256-T7WQ3yqqkEyTric9XNRHNfsHhw39jYVSLv7QhSD+avQ=",
"owner": "ezKEa",
"repo": "aagl-gtk-on-nix",
"rev": "e9a3b8fdb50a7d77a90c02c84e298c286310385b",
"rev": "0968049e240f2eed9a3e3ee92bc3e06ca41d9b96",
"type": "github"
},
"original": {
@@ -32,11 +32,11 @@
"rust-overlay": "rust-overlay_2"
},
"locked": {
"lastModified": 1791702392,
"narHash": "sha256-8uWZP3UiJBtYzBzazI18WvlshKYHxPb+8aqm02OxL5M=",
"lastModified": 1795331032,
"narHash": "sha256-Ke7V5uUMWRWmt9tFP4avjvQScko7mxxPRijcf3U+LAY=",
"ref": "refs/heads/master",
"rev": "ee2a27ad749d6d774e26c2be5de5f3a5ecd4a93f",
"revCount": 28,
"rev": "c2fc723de194139122afa4edd33aa55a8a2a7bd0",
"revCount": 34,
"type": "git",
"url": "https://scm.wyattjmiller.com/wymiller/caitsith.git"
},
@@ -74,11 +74,11 @@
]
},
"locked": {
"lastModified": 1786845137,
"narHash": "sha256-oQFip+v0luP8NIxJzmiW4Wu8bILsbFWom5l0zonl8hQ=",
"lastModified": 1795309925,
"narHash": "sha256-xpgrKyUvEMz0yCb+zklEpOFd0VnHyH0oBYce4Umj4e8=",
"owner": "LnL7",
"repo": "nix-darwin",
"rev": "4cff07de74b50e64bdd68cd4e722ab5b6b35ee48",
"rev": "f673885103fa92c1c5b1d16b8bf2b858906809e2",
"type": "github"
},
"original": {
@@ -122,15 +122,15 @@
"flake-compat_3": {
"flake": false,
"locked": {
"lastModified": 1767039857,
"narHash": "sha256-vNpUSpF5Nuw8xvDLj2KCwwksIbjua2LZCqhV1LNRDns=",
"owner": "NixOS",
"lastModified": 1747046372,
"narHash": "sha256-CIVLLkVgvHYbgI2UpXvIIBJ12HWgX+fjA8Xf8PUmqCY=",
"owner": "edolstra",
"repo": "flake-compat",
"rev": "5edf11c44bc78a0d334f6334cdaf7d60d732daab",
"rev": "9100a0f413b0c601e0533d1d94ffd501ce2e7885",
"type": "github"
},
"original": {
"owner": "NixOS",
"owner": "edolstra",
"repo": "flake-compat",
"type": "github"
}
@@ -197,49 +197,9 @@
"type": "github"
}
},
"flake-utils_2": {
"inputs": {
"systems": "systems_2"
},
"locked": {
"lastModified": 1731533236,
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"git-hooks": {
"inputs": {
"flake-compat": "flake-compat_2",
"nixpkgs": [
"go-overlay",
"nixpkgs"
]
},
"locked": {
"lastModified": 1788267358,
"narHash": "sha256-nt+lUqYVpc9Y6JeMd2WmXzCDojasdadKo0mWcluvY2Y=",
"owner": "cachix",
"repo": "git-hooks.nix",
"rev": "27555e2624241fb116b49095df4caaee85a25691",
"type": "github"
},
"original": {
"owner": "cachix",
"repo": "git-hooks.nix",
"type": "github"
}
},
"git-hooks_2": {
"inputs": {
"flake-compat": "flake-compat_3",
"nixpkgs": [
"nur",
"go-overlay",
@@ -264,37 +224,17 @@
"inputs": {
"flake-utils": "flake-utils",
"git-hooks": "git-hooks",
"nixpkgs": "nixpkgs"
},
"locked": {
"lastModified": 1792644631,
"narHash": "sha256-3aILZu5bQ+6khPvGCdIbC7wBFZOgPbpP0TBSL9tf89E=",
"owner": "purpleclay",
"repo": "go-overlay",
"rev": "ff2b494b477eb4349dd40f0564cedab552f9804d",
"type": "github"
},
"original": {
"owner": "purpleclay",
"repo": "go-overlay",
"type": "github"
}
},
"go-overlay_2": {
"inputs": {
"flake-utils": "flake-utils_2",
"git-hooks": "git-hooks_2",
"nixpkgs": [
"nur",
"nixpkgs"
]
},
"locked": {
"lastModified": 1792166485,
"narHash": "sha256-TL2RJ56FbBQNi6vsCXAn7QhZECh5DPbvzfiX6v+4r1A=",
"lastModified": 1794898085,
"narHash": "sha256-HNbMtouOi4xNguGtVVOWvblfjEPskp/sqa0RKyHEcFI=",
"owner": "purpleclay",
"repo": "go-overlay",
"rev": "5971ffb6c5de960d37f3b85c53cb5a30387cd05a",
"rev": "ca646008b650c468fde0392e25a05a8f103f3169",
"type": "github"
},
"original": {
@@ -313,11 +253,11 @@
"rust-overlay": "rust-overlay_3"
},
"locked": {
"lastModified": 1791702441,
"narHash": "sha256-qHf8tVIYu6OE1PKcthmpBgblg27u3bU7v4TVqy0B3jg=",
"lastModified": 1795330979,
"narHash": "sha256-u79aViHLrBu3860uCKZqKF/LyRVMq0T62n7lW3CZk7w=",
"ref": "refs/heads/master",
"rev": "2c2e99f6347e9be744a72f7df6043015989d6cd7",
"revCount": 17,
"rev": "e2fada33eee37bf5bdc311a2c04fee1d2a66ea29",
"revCount": 23,
"type": "git",
"url": "https://scm.wyattjmiller.com/wymiller/hildibrand.git"
},
@@ -333,11 +273,11 @@
]
},
"locked": {
"lastModified": 1792818383,
"narHash": "sha256-199i7ubVSXTMl+0AAlL7cVCXSjcI+jWByMcimYjeMX0=",
"lastModified": 1795325060,
"narHash": "sha256-XYoMPsqRFZ6jOaYI1KAAu8fzqif4tkCX8mhEKrViDXQ=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "24f2190587513b9c2f73db112a17844ae912d965",
"rev": "6480d7d8533b88c78cc6dcda395ab89cd546e450",
"type": "github"
},
"original": {
@@ -355,11 +295,11 @@
]
},
"locked": {
"lastModified": 1792098797,
"narHash": "sha256-u4DIIZgznEGzByxXrxWCXK19VcMtTBmi/M9gZ7Jk9bM=",
"lastModified": 1795325944,
"narHash": "sha256-dOPB2dprqzQTkfE8dUpFAD93oeOqT/yQzUXs52yGjJk=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "640725978b99076e18e069f6e7d2959124584f8f",
"rev": "cf726ddc129f140991c2011a02d336933d0c4c4c",
"type": "github"
},
"original": {
@@ -399,55 +339,62 @@
"type": "github"
}
},
"nix-minecraft": {
"inputs": {
"flake-compat": "flake-compat_3",
"nixpkgs": [
"nur",
"nixpkgs"
],
"systems": "systems_2"
},
"locked": {
"lastModified": 1795328210,
"narHash": "sha256-q7Kjji2d9YvD52oLmK0yED61qCqFyjmVbR3ItbOfgo8=",
"owner": "Infinidoge",
"repo": "nix-minecraft",
"rev": "e4d91c02ea21e59b1569cb6774dc129b37bb0a1c",
"type": "github"
},
"original": {
"owner": "Infinidoge",
"repo": "nix-minecraft",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1789286504,
"narHash": "sha256-eiEK7cKZORNEvX0GeF3RtNEF/JXhgf2RqSp3230q13E=",
"lastModified": 1795258312,
"narHash": "sha256-IEuDsf80ubivfpidbRsIm30HVo7PZIdZt1stRsbaY4Y=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "ef34387ddd751e1ab8857adf4676492d32eb24ec",
"rev": "94c3211b0ee8ba969a3f12eb4aff8ba0f72971dd",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"ref": "nixos-26.05",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_2": {
"locked": {
"lastModified": 1792615934,
"narHash": "sha256-MlvRfa1O5Cqc2/a+gG+l9TSuowEoCKCmrJ1d9oAVm0I=",
"owner": "nixos",
"lastModified": 1795258312,
"narHash": "sha256-IEuDsf80ubivfpidbRsIm30HVo7PZIdZt1stRsbaY4Y=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "da6dc0e7b26060f2f71ce3ef7088fb56ee44fa36",
"rev": "94c3211b0ee8ba969a3f12eb4aff8ba0f72971dd",
"type": "github"
},
"original": {
"owner": "nixos",
"owner": "NixOS",
"ref": "nixos-26.05",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_3": {
"locked": {
"lastModified": 1792030654,
"narHash": "sha256-OaQwAtPMTjQiY2sT/2/62UbSPhzP/0aDnWzMm/NCiUw=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "26f4107e47e3ad0ffd0db220469ba83b6f6d96e8",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-26.05",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_4": {
"locked": {
"lastModified": 1790046670,
"narHash": "sha256-OJe62m8gZx4xEAQnMcqH1u31/uu4Xf0q2ykAEHZfgrg=",
@@ -460,38 +407,23 @@
"url": "https://channels.nixos.org/nixos-unstable/nixexprs.tar.xz"
}
},
"nixpkgs_5": {
"locked": {
"lastModified": 1744536153,
"narHash": "sha256-awS2zRgF4uTwrOKwwiJcByDzDOdo3Q1rPZbiHQg/N38=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "18dd725c29603f582cf1900e0d25f9f1063dbf11",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nur": {
"inputs": {
"caitsith": "caitsith",
"darwin": "darwin_2",
"go-overlay": "go-overlay_2",
"go-overlay": "go-overlay",
"hildibrand": "hildibrand",
"home-manager": "home-manager_2",
"nixpkgs": "nixpkgs_3",
"nix-minecraft": "nix-minecraft",
"nixpkgs": "nixpkgs_2",
"rust-overlay": "rust-overlay_4"
},
"locked": {
"lastModified": 1792639431,
"narHash": "sha256-ZFh9vzagl6LegBH4gjIvEWIvNuZGEqOQX0LiAwt9DA8=",
"lastModified": 1795331127,
"narHash": "sha256-zIZR4R2impFnjqGEu2wYoPWwRUqRLOO9jhIb9Hl1bU8=",
"ref": "refs/heads/master",
"rev": "ce646a959820bed061d173e7631cd13d39edd532",
"revCount": 118,
"rev": "a40a9357d62ed2c5e716aaa2d6bdd1ce0d3ead46",
"revCount": 125,
"type": "git",
"url": "https://scm.wyattjmiller.com/wymiller/nur.git"
},
@@ -504,14 +436,14 @@
"inputs": {
"flake-compat": "flake-compat_4",
"mnw": "mnw",
"nixpkgs": "nixpkgs_4"
"nixpkgs": "nixpkgs_3"
},
"locked": {
"lastModified": 1792889789,
"narHash": "sha256-xpH3z+T5NELixXRjxGJ3mx30kz63Xt2B0ZfPWl7hcUg=",
"lastModified": 1794941510,
"narHash": "sha256-iZtLZ2bh2F1dvxiYYQNhXZTy7c2Lw9DpkD+Laq/pcog=",
"owner": "notashelf",
"repo": "nvf",
"rev": "557d2eb05a76e5939e6a75351343cae5731a71f8",
"rev": "f6a21f9c22e9ddf9cf88f9faf31d82985058ba14",
"type": "github"
},
"original": {
@@ -524,13 +456,11 @@
"inputs": {
"aagl": "aagl",
"darwin": "darwin",
"go-overlay": "go-overlay",
"home-manager": "home-manager",
"nix-flatpak": "nix-flatpak",
"nixpkgs": "nixpkgs_2",
"nixpkgs": "nixpkgs",
"nur": "nur",
"nvf": "nvf",
"rust-overlay": "rust-overlay_5"
"nvf": "nvf"
}
},
"rust-overlay": {
@@ -541,11 +471,11 @@
]
},
"locked": {
"lastModified": 1785476452,
"narHash": "sha256-/CXwCFPS41rb/JI2VitKCgVK6V5E6/sfw5ke3B9zyVQ=",
"lastModified": 1794216702,
"narHash": "sha256-J+4v+Olc/2mN/bSc9CuAQ/PB7c0w1mzDJK8JvS7rKmM=",
"owner": "oxalica",
"repo": "rust-overlay",
"rev": "6ef009bf4c4873cdc1a621826722bdea7c03e62c",
"rev": "b70538330f20adc9665afa2976471eb5b85ebd1f",
"type": "github"
},
"original": {
@@ -563,11 +493,11 @@
]
},
"locked": {
"lastModified": 1791620365,
"narHash": "sha256-CVZXIDNw7HEwyD8X6q9Ln370Sc0ZqRlTzDRwOZ1hJMY=",
"lastModified": 1795253373,
"narHash": "sha256-Vg6Sg8gJCDG9qpVEdOZX+72Z50MLwdnwtfZ8FNBwiYI=",
"owner": "oxalica",
"repo": "rust-overlay",
"rev": "e90fafa71b440fabcd52dd7fb017ab2da81c781a",
"rev": "52db20539ec0ba063479d66092992d9efcf456ff",
"type": "github"
},
"original": {
@@ -585,11 +515,11 @@
]
},
"locked": {
"lastModified": 1791620365,
"narHash": "sha256-CVZXIDNw7HEwyD8X6q9Ln370Sc0ZqRlTzDRwOZ1hJMY=",
"lastModified": 1795253373,
"narHash": "sha256-Vg6Sg8gJCDG9qpVEdOZX+72Z50MLwdnwtfZ8FNBwiYI=",
"owner": "oxalica",
"repo": "rust-overlay",
"rev": "e90fafa71b440fabcd52dd7fb017ab2da81c781a",
"rev": "52db20539ec0ba063479d66092992d9efcf456ff",
"type": "github"
},
"original": {
@@ -606,29 +536,11 @@
]
},
"locked": {
"lastModified": 1792219666,
"narHash": "sha256-RMO08tKD+hFIL5ryWi85VY4aHE5oIpdV1h4kVFctOkw=",
"lastModified": 1795253373,
"narHash": "sha256-Vg6Sg8gJCDG9qpVEdOZX+72Z50MLwdnwtfZ8FNBwiYI=",
"owner": "oxalica",
"repo": "rust-overlay",
"rev": "a110337465cfb76e3806b81b9db3094c3e6e770a",
"type": "github"
},
"original": {
"owner": "oxalica",
"repo": "rust-overlay",
"type": "github"
}
},
"rust-overlay_5": {
"inputs": {
"nixpkgs": "nixpkgs_5"
},
"locked": {
"lastModified": 1792825530,
"narHash": "sha256-aphXA2IFNd3q48++TKmfuuvDDjkrgGdJDnDIhij9684=",
"owner": "oxalica",
"repo": "rust-overlay",
"rev": "5b9f1198b59bcb31c5c3250b332e7d77590e6306",
"rev": "52db20539ec0ba063479d66092992d9efcf456ff",
"type": "github"
},
"original": {
+4 -9
View File
@@ -11,13 +11,13 @@
url = "github:lnl7/nix-darwin/nix-darwin-26.05";
inputs.nixpkgs.follows = "nixpkgs";
};
rust-overlay.url = "github:oxalica/rust-overlay";
go-overlay.url = "github:purpleclay/go-overlay";
aagl = {
url = "github:ezKEa/aagl-gtk-on-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
nvf.url = "github:notashelf/nvf";
nvf = {
url = "github:notashelf/nvf";
};
nur.url = "git+https://scm.wyattjmiller.com/wymiller/nur.git";
};
@@ -27,8 +27,6 @@
nix-flatpak,
darwin,
home-manager,
rust-overlay,
go-overlay,
aagl,
nur,
nvf,
@@ -42,8 +40,7 @@
myOverlays = { ... }: {
nixpkgs.overlays = [
rust-overlay.overlays.default
go-overlay.overlays.default
nur.overlays.default
aagl.overlays.default
self.common.overlays
];
@@ -286,8 +283,6 @@
modules = [
{
nixpkgs.overlays = [
rust-overlay.overlays.default
go-overlay.overlays.default
self.common.overlays
];
}
-14
View File
@@ -1,7 +1,6 @@
{ lib
, pkgs
, userName
, isNixOS ? true
, ...
}: let
# Have a file sturcture that holds all the configuration files that can't be configured by Nix
@@ -31,19 +30,6 @@ in
stateVersion = "24.11";
}
(lib.mkIf isNixOS {
sessionVariables = {
XDG_CURRENT_DESKTOP = "sway";
XDG_SESSION_TYPE = "wayland";
XDG_SESSION_DESKTOP = "sway";
XDG_CONFIG_HOME = "$HOME/.config";
XDG_CACHE_HOME = "$HOME/.cache";
XDG_DATA_HOME = "$HOME/.local/share";
XDG_STATE_HOME = "$HOME/.local/state";
NIXOS_OZONE_WL = "1";
};
})
(lib.mkIf pkgs.stdenv.isLinux {
pointerCursor = {
gtk.enable = true;
+4 -1
View File
@@ -27,7 +27,10 @@
enable = true;
lsp.servers = [ "typescript-language-server" "deno" ];
};
csharp.enable = true;
csharp = {
enable = true;
lsp.servers = [ "omnisharp" ];
};
};
utility.surround.enable = true;
+7 -1
View File
@@ -22,6 +22,8 @@ in {
programs.swaytreesave.enable = if pkgs.stdenv.isLinux then true else false;
services.polkit-gnome.enable = pkgs.stdenv.isLinux;
wayland.windowManager.sway = {
enable = pkgs.stdenv.isLinux;
extraOptions = []; # Extra arguments to pass into sway. If sway goes haywire, we might need something in here
@@ -36,6 +38,10 @@ in {
xdg.configFile."sway/config".source = lib.mkForce (dirs.defaults + /sway/config);
xdg.configFile."waybar/config".source = lib.mkForce (dirs.defaults + /waybar/config);
xdg.configFile."waybar/style.css".source = lib.mkForce (dirs.defaults + /waybar/style.css);
xdg.configFile."waybar/network.sh".source = dirs.defaults + /waybar/network.sh;
xdg.configFile."waybar/ollama.sh".source = dirs.defaults + /waybar/ollama.sh;
home.packages = with pkgs; [ curl iproute2 networkmanager ];
programs.wofi = {
enable = pkgs.stdenv.isLinux;
@@ -153,6 +159,6 @@ in {
programs.waybar = {
enable = pkgs.stdenv.isLinux;
systemd.enable = true;
systemd.enable = false;
};
}
View File
Whitespace-only changes.
+1
View File
@@ -18,6 +18,7 @@
libunwind
libusb1
libuuid
libgbm
nspr
nss
stdenv.cc.cc
+110 -110
View File
@@ -1,67 +1,67 @@
final: prev: let
rust_latest = prev.rust-bin.stable.latest.default;
golang_latest = prev.go-bin.latestStable;
buildGoModuleLatest = prev.buildGoModule.override {
go = golang_latest;
};
myRustPlatform = prev.makeRustPlatform {
cargo = rust_latest;
rustc = rust_latest;
};
# rust_latest = prev.rust-bin.stable.latest.default;
# golang_latest = prev.go-bin.latestStable;
# buildGoModuleLatest = prev.buildGoModule.override {
# go = golang_latest;
# };
# myRustPlatform = prev.makeRustPlatform {
# cargo = rust_latest;
# rustc = rust_latest;
# };
in {
lazygitLatest = prev.lazygit.overrideAttrs (_: rec {
version = "0.61.0";
src = prev.fetchFromGitHub {
owner = "jesseduffield";
repo = "lazygit";
rev = "v${version}";
hash = "sha256-G7JulCK9WUVWbp1V7lYuM3fehCdn1cNAJHYjr3aKDvQ=";
};
vendorHash = null;
subPackages = [ "." ];
ldflags = [
"-X main.version=${version}"
"-X main.buildSource=nix"
];
});
atuinLatest = (prev.atuin.override {
rustPlatform = myRustPlatform;
}).overrideAttrs (oldAttrs: rec {
version = "18.13.6";
src = prev.fetchFromGitHub {
owner = "atuinsh";
repo = "atuin";
rev = "v${version}";
hash = "sha256-yAw+ty6FUnFbiRTdAe2QQHzj6uU24fZ/bEIXcHl/thg=";
};
cargoDeps = myRustPlatform.fetchCargoVendor {
# name = "atuin-${version}-vendor.tar.gz";
inherit src;
hash = "sha256-jirVe0+N5+UHZWioj8AipUhawMBameqEJJpa8HPTnfw=";
};
cargoBuildFeatures = [
"ai"
"client"
"clipboard"
"daemon"
"hex"
"sync"
];
cargoCheckFeatures = cargoBuildFeatures;
preCheck = (oldAttrs.preCheck or "") + ''
export HOME="$TMPDIR"
export XDG_CONFIG_HOME="$TMPDIR/.config"
export XDG_DATA_HOME="$TMPDIR/.local/share"
export XDG_STATE_HOME="$TMPDIR/.local/state"
mkdir -p "$XDG_CONFIG_HOME" "$XDG_DATA_HOME" "$XDG_STATE_HOME"
'';
});
# lazygitLatest = prev.lazygit.overrideAttrs (_: rec {
# version = "0.61.0";
# src = prev.fetchFromGitHub {
# owner = "jesseduffield";
# repo = "lazygit";
# rev = "v${version}";
# hash = "sha256-G7JulCK9WUVWbp1V7lYuM3fehCdn1cNAJHYjr3aKDvQ=";
# };
#
# vendorHash = null;
# subPackages = [ "." ];
# ldflags = [
# "-X main.version=${version}"
# "-X main.buildSource=nix"
# ];
# });
#
# atuinLatest = (prev.atuin.override {
# rustPlatform = myRustPlatform;
# }).overrideAttrs (oldAttrs: rec {
# version = "18.13.6";
#
# src = prev.fetchFromGitHub {
# owner = "atuinsh";
# repo = "atuin";
# rev = "v${version}";
# hash = "sha256-yAw+ty6FUnFbiRTdAe2QQHzj6uU24fZ/bEIXcHl/thg=";
# };
#
# cargoDeps = myRustPlatform.fetchCargoVendor {
# # name = "atuin-${version}-vendor.tar.gz";
# inherit src;
# hash = "sha256-jirVe0+N5+UHZWioj8AipUhawMBameqEJJpa8HPTnfw=";
# };
#
# cargoBuildFeatures = [
# "ai"
# "client"
# "clipboard"
# "daemon"
# "hex"
# "sync"
# ];
# cargoCheckFeatures = cargoBuildFeatures;
#
# preCheck = (oldAttrs.preCheck or "") + ''
# export HOME="$TMPDIR"
# export XDG_CONFIG_HOME="$TMPDIR/.config"
# export XDG_DATA_HOME="$TMPDIR/.local/share"
# export XDG_STATE_HOME="$TMPDIR/.local/state"
# mkdir -p "$XDG_CONFIG_HOME" "$XDG_DATA_HOME" "$XDG_STATE_HOME"
# '';
# });
# k9sLatest = prev.k9s.overrideAttrs (oldAttrs: rec {
# version = "0.30.16";
@@ -77,52 +77,52 @@ in {
# ];
# });
ghDashLatest = (prev.gh-dash.override {
buildGoModule = buildGoModuleLatest;
}).overrideAttrs (oldAttrs: rec {
version = "4.23.2";
src = prev.fetchFromGitHub {
owner = "dlvhdr";
repo = "gh-dash";
rev = "v${version}";
hash = "sha256-C06LPVoE23ITJpMG0x75Djgeup+eb5uYwA8wL7xxvWU=";
};
vendorHash = "sha256-4AbeoH0l7eIS7d0yyJxM7+woC7Q/FCh0BOJj3d1zyX4=";
doCheck = false;
checkFlags = [
"-skip=TestFullOutput"
];
ldflags = [
"-s"
"-w"
"-X github.com/dlvhdr/gh-dash/v4/cmd.Version=${version}"
];
passthru = (oldAttrs.passthru or {}) // {
tests = {
version = oldAttrs.testers.testVersion { package = final.ghDashLatest; };
};
};
});
diffNavLatest = (prev.diffnav.override {
buildGoModule = buildGoModuleLatest;
}).overrideAttrs (_: rec {
version = "0.10.0";
src = prev.fetchFromGitHub {
owner = "dlvhdr";
repo = "diffnav";
rev = "v${version}";
hash = "sha256-6VtAQzZNLQrf8QYVXxLUgb3F6xguFDbwaE9kahPhbSE=";
};
vendorHash = "sha256-gmmckzR0D1oFuTG5TAb6gLMoNbcZl9EsjbFjhPfJqnQ=";
ldflags = [
"-s"
"-w"
];
});
# ghDashLatest = (prev.gh-dash.override {
# buildGoModule = buildGoModuleLatest;
# }).overrideAttrs (oldAttrs: rec {
# version = "4.23.2";
# src = prev.fetchFromGitHub {
# owner = "dlvhdr";
# repo = "gh-dash";
# rev = "v${version}";
# hash = "sha256-C06LPVoE23ITJpMG0x75Djgeup+eb5uYwA8wL7xxvWU=";
# };
#
# vendorHash = "sha256-4AbeoH0l7eIS7d0yyJxM7+woC7Q/FCh0BOJj3d1zyX4=";
# doCheck = false;
# checkFlags = [
# "-skip=TestFullOutput"
# ];
#
# ldflags = [
# "-s"
# "-w"
# "-X github.com/dlvhdr/gh-dash/v4/cmd.Version=${version}"
# ];
#
# passthru = (oldAttrs.passthru or {}) // {
# tests = {
# version = oldAttrs.testers.testVersion { package = final.ghDashLatest; };
# };
# };
# });
#
# diffNavLatest = (prev.diffnav.override {
# buildGoModule = buildGoModuleLatest;
# }).overrideAttrs (_: rec {
# version = "0.10.0";
# src = prev.fetchFromGitHub {
# owner = "dlvhdr";
# repo = "diffnav";
# rev = "v${version}";
# hash = "sha256-6VtAQzZNLQrf8QYVXxLUgb3F6xguFDbwaE9kahPhbSE=";
# };
#
# vendorHash = "sha256-gmmckzR0D1oFuTG5TAb6gLMoNbcZl9EsjbFjhPfJqnQ=";
#
# ldflags = [
# "-s"
# "-w"
# ];
# });
}
+178
View File
@@ -0,0 +1,178 @@
{
config,
lib,
pkgs,
...
}: let
cfg = config.desktop;
defaultWaylandPackages = with pkgs; [
brightnessctl
cliphist
foot
grim
libnotify
mako
networkmanagerapplet
playerctl
polkit_gnome
pavucontrol
rofi
slurp
waybar
wl-clipboard
xdg-utils
];
defaultSwayPackages =
defaultWaylandPackages
++ (with pkgs; [
pulseaudio
swayidle
swaylock
wmenu
]);
resolvedDisplayManager =
if cfg.displayManager != "auto"
then cfg.displayManager
else if cfg.gnome.enable
then "gdm"
else if cfg.xfce.enable
then "lightdm"
else "none";
in {
imports = [./xdg.nix];
options.desktop = {
displayManager = lib.mkOption {
type = lib.types.enum ["auto" "none" "gdm" "lightdm" "ly"];
default = "auto";
description = ''
Display manager to enable. In auto mode, GDM is used when GNOME is
enabled, LightDM is used when XFCE is enabled, and no display manager
is enabled for compositor-only configurations.
'';
};
gnome.enable = lib.mkEnableOption "the vanilla GNOME desktop environment";
xfce.enable = lib.mkEnableOption "the vanilla XFCE desktop environment";
sway = {
enable = lib.mkEnableOption "the Sway Wayland compositor";
extraPackages = lib.mkOption {
type = with lib.types; listOf package;
default = defaultSwayPackages;
defaultText = lib.literalExpression ''
with pkgs; [
brightnessctl
cliphist
foot
grim
libnotify
mako
networkmanagerapplet
playerctl
polkit_gnome
pulseaudio
pavucontrol
rofi
slurp
swayidle
swaylock
waybar
wl-clipboard
wmenu
xdg-utils
]
'';
description = "Packages installed alongside Sway.";
};
};
hyprland = {
enable = lib.mkEnableOption "the Hyprland Wayland compositor";
extraPackages = lib.mkOption {
type = with lib.types; listOf package;
default = defaultWaylandPackages;
defaultText = lib.literalExpression ''
with pkgs; [
brightnessctl
cliphist
foot
grim
libnotify
mako
networkmanagerapplet
playerctl
polkit_gnome
pavucontrol
rofi
slurp
waybar
wl-clipboard
xdg-utils
]
'';
description = ''
Packages installed alongside Hyprland. Hyprlock and Hypridle are
enabled separately so their NixOS integration, including PAM, is
configured as well.
'';
};
};
};
config = lib.mkMerge [
(lib.mkIf cfg.gnome.enable {
services.desktopManager.gnome.enable = true;
})
(lib.mkIf cfg.xfce.enable {
services.xserver = {
enable = true;
desktopManager.xfce.enable = true;
};
})
(lib.mkIf cfg.sway.enable {
programs.sway = {
enable = true;
wrapperFeatures.gtk = true;
extraPackages = cfg.sway.extraPackages;
extraSessionCommands = ''
export XDG_SESSION_TYPE=wayland
export XDG_SESSION_DESKTOP=sway
export NIXOS_OZONE_WL=1
'';
};
})
(lib.mkIf cfg.hyprland.enable {
programs = {
hyprland.enable = true;
hyprlock.enable = lib.mkDefault true;
};
environment.systemPackages = cfg.hyprland.extraPackages;
})
(lib.mkIf (resolvedDisplayManager == "gdm") {
services.displayManager.gdm.enable = true;
})
(lib.mkIf (resolvedDisplayManager == "lightdm") {
services.xserver = {
enable = true;
displayManager.lightdm.enable = true;
};
})
(lib.mkIf (resolvedDisplayManager == "ly") {
services.displayManager.ly.enable = true;
})
];
}
+49
View File
@@ -0,0 +1,49 @@
{
config,
lib,
pkgs,
...
}: let
cfg = config.desktop;
needsGtkPortal = cfg.xfce.enable || cfg.hyprland.enable;
usesPortal = cfg.gnome.enable || cfg.xfce.enable || cfg.sway.enable || cfg.hyprland.enable;
in {
config = lib.mkMerge [
# GNOME and Sway configure their own portals in NixOS. XFCE needs a
# portal; Hyprland benefits from GTK as a fallback to its native one.
(lib.mkIf needsGtkPortal {
xdg.portal = {
enable = true;
extraPortals = [pkgs.xdg-desktop-portal-gtk];
};
})
(lib.mkIf (cfg.sway.enable || needsGtkPortal) {
xdg.portal.config.common.default = ["gtk"];
})
(lib.mkIf cfg.sway.enable {
xdg.portal.wlr.settings.screencast = {
chooser_type = "dmenu";
chooser_cmd = "${pkgs.wmenu}/bin/wmenu -l 10 -p 'Select screen to share:'";
};
})
(lib.mkIf (usesPortal && config.services.gnome.gnome-keyring.enable) {
xdg.portal.config.common."org.freedesktop.impl.portal.Secret" = ["gnome-keyring"];
})
(lib.mkIf (cfg.sway.enable && config.services.gnome.gnome-keyring.enable) {
xdg.portal.config.sway."org.freedesktop.impl.portal.Secret" = ["gnome-keyring"];
})
# A per-desktop config takes precedence over Hyprland's packaged config,
# so include its native portal whenever adding a Secret preference.
(lib.mkIf (cfg.hyprland.enable && config.services.gnome.gnome-keyring.enable) {
xdg.portal.config.hyprland = {
default = ["hyprland" "gtk"];
"org.freedesktop.impl.portal.Secret" = ["gnome-keyring"];
};
})
];
}
+19 -22
View File
@@ -22,6 +22,7 @@ in {
})
../../apps/gaming.nix
../../apps/appimage.nix
../../desktop
../../graphics
../../pwrMgmt
../../networking/core.nix
@@ -74,7 +75,6 @@ in {
brightnessctl
wttrbar
cliphist
xdg-desktop-portal-gtk
xdg-utils
flatpak-xdg-utils
desktop-file-utils
@@ -84,11 +84,28 @@ in {
ollama-rocm
newelle
vlc
popsicle
];
systemd.user.services.ollama = {
description = "Ollama local AI server";
serviceConfig = {
ExecStart = "${pkgs.ollama-rocm}/bin/ollama serve";
Restart = "on-failure";
Environment = [
"OLLAMA_HOST=0.0.0.0:11434"
"OLLAMA_CONTEXT_LENGTH=64000"
];
};
};
# Enable Polkit
security.polkit.enable = true;
# Enable desktop support (sway)
desktop.sway.enable = true;
desktop.displayManager = "ly";
# Graphics module (../../graphics/default.nix)
graphics = {
enable = true;
@@ -189,27 +206,6 @@ in {
# AppImage support
appimage.enable = true;
# XDG stuff
xdg = {
portal = {
enable = true;
config = {
sway = {
default = ["wlr" "gtk"];
"org.freedesktop.impl.portal.Secret" = ["gnome-keyring"];
};
common = {
default = ["gtk"];
"org.freedesktop.impl.portal.Secret" = ["gnome-keyring"];
};
};
extraPortals = with pkgs; [
xdg-desktop-portal-wlr
xdg-desktop-portal-gtk
];
};
};
# sched_ext userspace CPU scheduling stuff - idk
services.scx = {
enable = true;
@@ -230,6 +226,7 @@ in {
# Tailscale service
services.tailscale.enable = true;
services.udisks2.enable = true;
system.stateVersion = "24.11";
}
+2 -2
View File
@@ -50,10 +50,10 @@
firewall = {
enable = true;
tcpPorts = {
allowedPorts = [ 42420 ];
allowedPorts = [ 42421 ];
};
udpPorts = {
allowedPorts = [ 42420 ];
allowedPorts = [ 42421 ];
};
};
networkManager.enable = true;
+5
View File
@@ -8,6 +8,11 @@
enable = true;
support32Bit = true;
};
# The X11 bell module can crash PipeWire when Xwayland disconnects.
extraConfig.pipewire."10-disable-x11-bell" = {
"context.properties"."module.x11.bell" = false;
};
};
environment.systemPackages = with pkgs; [