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
25 changed files with 538 additions and 851 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
+63 -206
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": 1792911802,
"narHash": "sha256-GdMiAfj8hRDCqrE2AvQJ3atf0y2XVGFx9/Ptr6qiju0=",
"lastModified": 1795331032,
"narHash": "sha256-Ke7V5uUMWRWmt9tFP4avjvQScko7mxxPRijcf3U+LAY=",
"ref": "refs/heads/master",
"rev": "a355f99a17b9dc38fc626b80340646a94ae7f1c9",
"revCount": 30,
"rev": "c2fc723de194139122afa4edd33aa55a8a2a7bd0",
"revCount": 34,
"type": "git",
"url": "https://scm.wyattjmiller.com/wymiller/caitsith.git"
},
@@ -74,11 +74,11 @@
]
},
"locked": {
"lastModified": 1792737899,
"narHash": "sha256-P0/GhewcEQmAbzq3QunNWY2jLJaYH9F6c/5dEM/jQ4M=",
"lastModified": 1795309925,
"narHash": "sha256-xpgrKyUvEMz0yCb+zklEpOFd0VnHyH0oBYce4Umj4e8=",
"owner": "LnL7",
"repo": "nix-darwin",
"rev": "bb0b90dbd54e207100de72b5dcbe3188c98a4b69",
"rev": "f673885103fa92c1c5b1d16b8bf2b858906809e2",
"type": "github"
},
"original": {
@@ -120,22 +120,6 @@
}
},
"flake-compat_3": {
"flake": false,
"locked": {
"lastModified": 1767039857,
"narHash": "sha256-vNpUSpF5Nuw8xvDLj2KCwwksIbjua2LZCqhV1LNRDns=",
"owner": "NixOS",
"repo": "flake-compat",
"rev": "5edf11c44bc78a0d334f6334cdaf7d60d732daab",
"type": "github"
},
"original": {
"owner": "NixOS",
"repo": "flake-compat",
"type": "github"
}
},
"flake-compat_4": {
"flake": false,
"locked": {
"lastModified": 1747046372,
@@ -151,7 +135,7 @@
"type": "github"
}
},
"flake-compat_5": {
"flake-compat_4": {
"flake": false,
"locked": {
"lastModified": 1777699697,
@@ -213,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",
@@ -280,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": 1792644631,
"narHash": "sha256-3aILZu5bQ+6khPvGCdIbC7wBFZOgPbpP0TBSL9tf89E=",
"lastModified": 1794898085,
"narHash": "sha256-HNbMtouOi4xNguGtVVOWvblfjEPskp/sqa0RKyHEcFI=",
"owner": "purpleclay",
"repo": "go-overlay",
"rev": "ff2b494b477eb4349dd40f0564cedab552f9804d",
"rev": "ca646008b650c468fde0392e25a05a8f103f3169",
"type": "github"
},
"original": {
@@ -329,11 +253,11 @@
"rust-overlay": "rust-overlay_3"
},
"locked": {
"lastModified": 1792911744,
"narHash": "sha256-iXH6FL8HYaZg0+p9lUv5bEc4k1YpvwKFYtMYbY1phTA=",
"lastModified": 1795330979,
"narHash": "sha256-u79aViHLrBu3860uCKZqKF/LyRVMq0T62n7lW3CZk7w=",
"ref": "refs/heads/master",
"rev": "01ff244467f011033d98286e8f4171a890e9060a",
"revCount": 19,
"rev": "e2fada33eee37bf5bdc311a2c04fee1d2a66ea29",
"revCount": 23,
"type": "git",
"url": "https://scm.wyattjmiller.com/wymiller/hildibrand.git"
},
@@ -349,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": {
@@ -371,11 +295,11 @@
]
},
"locked": {
"lastModified": 1792896866,
"narHash": "sha256-/0tELNnhdSnP+bHSdWiEe6KpfSwi6WrTnT9cm/jNkjA=",
"lastModified": 1795325944,
"narHash": "sha256-dOPB2dprqzQTkfE8dUpFAD93oeOqT/yQzUXs52yGjJk=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "c216bf5a1f173b0481bd5c8c489ebe5595ecc68c",
"rev": "cf726ddc129f140991c2011a02d336933d0c4c4c",
"type": "github"
},
"original": {
@@ -417,19 +341,19 @@
},
"nix-minecraft": {
"inputs": {
"flake-compat": "flake-compat_4",
"flake-compat": "flake-compat_3",
"nixpkgs": [
"nur",
"nixpkgs"
],
"systems": "systems_3"
"systems": "systems_2"
},
"locked": {
"lastModified": 1792988509,
"narHash": "sha256-1Li/v57ePpV9t6E57w/XTu760H6hYHztwm1RSd6RA8k=",
"lastModified": 1795328210,
"narHash": "sha256-q7Kjji2d9YvD52oLmK0yED61qCqFyjmVbR3ItbOfgo8=",
"owner": "Infinidoge",
"repo": "nix-minecraft",
"rev": "931d87d3811cabc0277be27b94392d19291bd344",
"rev": "e4d91c02ea21e59b1569cb6774dc129b37bb0a1c",
"type": "github"
},
"original": {
@@ -440,53 +364,37 @@
},
"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": 1792898606,
"narHash": "sha256-Mg3rRjsbMqhSMxop5PYMXos8SwAjejrxSgVThTvP9eg=",
"owner": "nixos",
"lastModified": 1795258312,
"narHash": "sha256-IEuDsf80ubivfpidbRsIm30HVo7PZIdZt1stRsbaY4Y=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "1f607aa79b6356ed45d3cd3c8079c196e79efa2c",
"rev": "94c3211b0ee8ba969a3f12eb4aff8ba0f72971dd",
"type": "github"
},
"original": {
"owner": "nixos",
"owner": "NixOS",
"ref": "nixos-26.05",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_3": {
"locked": {
"lastModified": 1792615934,
"narHash": "sha256-MlvRfa1O5Cqc2/a+gG+l9TSuowEoCKCmrJ1d9oAVm0I=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "da6dc0e7b26060f2f71ce3ef7088fb56ee44fa36",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-26.05",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_4": {
"locked": {
"lastModified": 1790046670,
"narHash": "sha256-OJe62m8gZx4xEAQnMcqH1u31/uu4Xf0q2ykAEHZfgrg=",
@@ -499,39 +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",
"nix-minecraft": "nix-minecraft",
"nixpkgs": "nixpkgs_3",
"nixpkgs": "nixpkgs_2",
"rust-overlay": "rust-overlay_4"
},
"locked": {
"lastModified": 1793051642,
"narHash": "sha256-b+CbWZU8sYR9TNBg6KJur680E+5+Zm4S4IVzkzFnJEc=",
"lastModified": 1795331127,
"narHash": "sha256-zIZR4R2impFnjqGEu2wYoPWwRUqRLOO9jhIb9Hl1bU8=",
"ref": "refs/heads/master",
"rev": "8ec05b20cea4865f9fd5dd797c6e090f41863db1",
"revCount": 121,
"rev": "a40a9357d62ed2c5e716aaa2d6bdd1ce0d3ead46",
"revCount": 125,
"type": "git",
"url": "https://scm.wyattjmiller.com/wymiller/nur.git"
},
@@ -542,16 +434,16 @@
},
"nvf": {
"inputs": {
"flake-compat": "flake-compat_5",
"flake-compat": "flake-compat_4",
"mnw": "mnw",
"nixpkgs": "nixpkgs_4"
"nixpkgs": "nixpkgs_3"
},
"locked": {
"lastModified": 1793047357,
"narHash": "sha256-eY8aBTGSgtx+25254i22jyjbj+JQkEIfb+JyQ2Exnuk=",
"lastModified": 1794941510,
"narHash": "sha256-iZtLZ2bh2F1dvxiYYQNhXZTy7c2Lw9DpkD+Laq/pcog=",
"owner": "notashelf",
"repo": "nvf",
"rev": "60b4593979c39e9a1227c9913bd835bb1a59054b",
"rev": "f6a21f9c22e9ddf9cf88f9faf31d82985058ba14",
"type": "github"
},
"original": {
@@ -564,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": {
@@ -581,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": {
@@ -603,11 +493,11 @@
]
},
"locked": {
"lastModified": 1792825530,
"narHash": "sha256-aphXA2IFNd3q48++TKmfuuvDDjkrgGdJDnDIhij9684=",
"lastModified": 1795253373,
"narHash": "sha256-Vg6Sg8gJCDG9qpVEdOZX+72Z50MLwdnwtfZ8FNBwiYI=",
"owner": "oxalica",
"repo": "rust-overlay",
"rev": "5b9f1198b59bcb31c5c3250b332e7d77590e6306",
"rev": "52db20539ec0ba063479d66092992d9efcf456ff",
"type": "github"
},
"original": {
@@ -625,11 +515,11 @@
]
},
"locked": {
"lastModified": 1792825530,
"narHash": "sha256-aphXA2IFNd3q48++TKmfuuvDDjkrgGdJDnDIhij9684=",
"lastModified": 1795253373,
"narHash": "sha256-Vg6Sg8gJCDG9qpVEdOZX+72Z50MLwdnwtfZ8FNBwiYI=",
"owner": "oxalica",
"repo": "rust-overlay",
"rev": "5b9f1198b59bcb31c5c3250b332e7d77590e6306",
"rev": "52db20539ec0ba063479d66092992d9efcf456ff",
"type": "github"
},
"original": {
@@ -646,29 +536,11 @@
]
},
"locked": {
"lastModified": 1792825530,
"narHash": "sha256-aphXA2IFNd3q48++TKmfuuvDDjkrgGdJDnDIhij9684=",
"lastModified": 1795253373,
"narHash": "sha256-Vg6Sg8gJCDG9qpVEdOZX+72Z50MLwdnwtfZ8FNBwiYI=",
"owner": "oxalica",
"repo": "rust-overlay",
"rev": "5b9f1198b59bcb31c5c3250b332e7d77590e6306",
"type": "github"
},
"original": {
"owner": "oxalica",
"repo": "rust-overlay",
"type": "github"
}
},
"rust-overlay_5": {
"inputs": {
"nixpkgs": "nixpkgs_5"
},
"locked": {
"lastModified": 1793000331,
"narHash": "sha256-6sLQgHX/V/yF8VrhmsJroujeRua1GY3nDTEpnY7tHF4=",
"owner": "oxalica",
"repo": "rust-overlay",
"rev": "0d0575988e4bb9ebc4cf1afb1cec1ceac0b5914e",
"rev": "52db20539ec0ba063479d66092992d9efcf456ff",
"type": "github"
},
"original": {
@@ -706,21 +578,6 @@
"repo": "default",
"type": "github"
}
},
"systems_3": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
}
},
"root": "root",
+4 -33
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
];
@@ -271,30 +268,6 @@
];
};
# Homestead 2.0 Minecraft server
nixosConfigurations."krile" = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {
inherit userName userEmail nur;
hostname = "krile";
role = "server";
};
modules = [
myOverlays
./modules/common
./modules/machine/krile
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = extraSpecialArgs // { isNixOS = true; role = "server"; };
home-manager.backupFileExtension = "bak";
home-manager.users.${userName}.imports = [./home];
}
];
};
# generic non-NixOS Linux machine
homeConfigurations."generic" = let
hostname = builtins.getEnv "HOSTNAME";
@@ -310,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"];
};
})
];
}
-138
View File
@@ -1,138 +0,0 @@
# Homestead 2.0 on krile
This module uses the Minecraft NixOS module and Fabric overlay re-exported by
the existing `nur` flake input. It pins Minecraft 1.20.1, Fabric 0.19.5, Java 17,
and the [official Homestead 2.0 server pack](https://cozystudios.org/homestead/server-pack/).
The archive and all eight additional mods listed in its `startserver.sh` are
downloaded with fixed SHA-256 hashes during the Nix build. The upstream startup
script is not run.
`modules/machine/krile/configuration.nix` enables the server, accepts the Minecraft
EULA, and opens TCP 25565 and UDP 24454 (Simple Voice Chat). Forward those ports
to krile on your router if players connect from outside your network. Players
need the Homestead 2.0 client pack.
The default heap is 6 GiB initially and 10 GiB maximum. Give the VM additional
RAM for the OS, native libraries, and filesystem cache; 16 GiB total is a
reasonable starting point.
## Deploy
On krile, from the repository root:
```bash
nix eval --raw path:.#nixosConfigurations.krile.config.system.build.toplevel.drvPath
sudo nixos-rebuild switch --flake path:.#krile
```
The `path:.` form includes new files before they have been added to Git. Once the
new module and krile files are tracked, `--flake .#krile` works as usual.
The service starts on boot and restarts after an unexpected exit. Check it with:
```bash
systemctl status minecraft-server-homestead
journalctl -u minecraft-server-homestead -f
```
The console uses nix-minecraft's systemd FIFO. For example, run a command with:
```bash
sudo sh -c 'echo list > /run/minecraft/homestead.stdin'
```
Stop the service with `sudo systemctl stop minecraft-server-homestead` so it can
save the world cleanly.
## Configuration and state
Worlds, player progress, and other runtime state live in
`/srv/minecraft/homestead`. Back up that directory, particularly `world/`, before
changing pack versions. The module does not provide automatic backups.
The `mods` directory and server icon are store symlinks. `config`, `defaultconfigs`,
`kubejs`, `scripts`, and `patchouli_books` are writable copies of the pinned pack,
recreated on each start and removed on stop by nix-minecraft. Edits to those
copies do not persist across restarts. World data is not part of those managed
directories.
Change the Minecraft port in `modules/machine/krile/configuration.nix`:
```nix
services.homestead.port = 25566;
```
The default is TCP 25565. When `services.homestead.openFirewall = true`, the
opened TCP port follows this setting. Update your router's port forwarding and
connect with `krile:25566` (or your server's address). Voice chat remains on
UDP 24454, matching the pack's `config/voicechat/voicechat-server.properties`.
Rebuild krile to apply the change.
Change memory in the host configuration:
```nix
services.homestead.jvmOpts = "-Xms6G -Xmx12G -XX:+UseG1GC";
```
Declare operators in the host configuration:
```nix
services.homestead.operators = {
"YourMinecraftName" = {
uuid = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx";
level = 4;
bypassesPlayerLimit = false;
};
};
```
Replace the example name and UUID with the player's actual Minecraft account
details. A UUID string also works as a shorthand:
`services.homestead.operators."YourMinecraftName" = "your-player-uuid";`.
It defaults to permission level 4 and does not bypass the player limit.
After rebuilding krile, nix-minecraft generates
`/srv/minecraft/homestead/ops.json` when the server starts. A nonempty operator
list replaces the file on each start, so changes made with `/op` or `/deop` do
not persist across restarts. The default `{ }` leaves `ops.json` unmanaged.
Other server settings use the underlying nix-minecraft options:
```nix
services.minecraft-servers.servers.homestead = {
serverProperties = {
max-players = 10;
white-list = true;
};
# Add real player UUIDs here, or manage the whitelist through the console.
whitelist = { };
};
```
The underlying `serverProperties.server-port` setting can still override
`services.homestead.port`; the opened TCP port follows the effective value.
To use this module on another NixOS host, pass `nur` in `specialArgs`, import
`modules/games/homestead`, set `services.homestead.enable = true`, and set
`services.minecraft-servers.eula = true` after accepting the EULA. The host must
allow unfree packages, as the common modules already do for krile.
## Pack updates
For a new release, inspect the official archive and startup script, update the
archive URL/hash in `package.nix`, update `required-mods.json` with any separate
downloads and their hashes, and match the Minecraft/Fabric versions in
`default.nix`. Evaluate and build before switching, then check the startup log.
The pack is kept fixed at 2.0 until these declarations change.
## Validation
The krile system derivation evaluates, and the pack, Fabric launcher, and
nix-minecraft setup/cleanup scripts build successfully. A temporary local server
reached `Done`, started Simple Voice Chat, and exited with status 0 after `stop`,
saving every dimension. Setup/cleanup was also checked to preserve world data
and reset managed configs. Multiplayer gameplay was not tested.
The upstream 2.0 pack emits some nonfatal mixin/recipe warnings and an optional
Falling Trees/Jade integration error during startup; these did not prevent the
startup and shutdown check from passing.
-98
View File
@@ -1,98 +0,0 @@
{
config,
lib,
nur,
options,
pkgs,
...
}:
let
cfg = config.services.homestead;
modpack = pkgs.callPackage ./package.nix { };
in
{
imports = [ nur.nixosModules.minecraft-servers ];
options.services.homestead = {
enable = lib.mkEnableOption "the Homestead 2.0 Minecraft server";
port = lib.mkOption {
type = lib.types.port;
default = 25565;
description = "TCP port for the Homestead Minecraft server.";
};
openFirewall = lib.mkOption {
type = lib.types.bool;
default = false;
description = "Open the Minecraft TCP port and Simple Voice Chat UDP port (24454).";
};
operators = lib.mkOption {
type = (options.services.minecraft-servers.servers.type.getSubOptions [ ]).operators.type;
default = { };
description = ''
Server operators keyed by Minecraft username. Values may be UUID strings
or attribute sets with uuid, level, and bypassesPlayerLimit. A nonempty
value manages ops.json declaratively; an empty value leaves it unmanaged.
'';
};
jvmOpts = lib.mkOption {
type = lib.types.str;
default = "-Xms6G -Xmx10G -XX:+UseG1GC";
description = "JVM options for Homestead. Leave additional RAM for the OS and native allocations.";
};
};
config = lib.mkIf cfg.enable {
nixpkgs.overlays = [ nur.overlays.minecraft ];
services.minecraft-servers = {
enable = true;
servers.homestead = {
enable = true;
inherit (cfg) openFirewall operators jvmOpts;
package = pkgs.fabricServers.fabric-1_20_1.override {
loaderVersion = "0.19.5";
jre_headless = pkgs.jdk17_headless;
};
managementSystem = {
tmux.enable = false;
systemd-socket.enable = true;
};
# Match the properties generated by the pack's startserver.sh.
serverProperties = lib.mapAttrs (_: lib.mkDefault) {
motd = "Homestead 2.0";
allow-flight = true;
max-tick-time = 180000;
simulation-distance = 6;
view-distance = 10;
server-port = cfg.port;
online-mode = true;
# keep-inventory = true;
};
symlinks = {
mods = "${modpack}/mods";
"server-icon.png" = "${modpack}/server-icon.png";
};
# Mods may rewrite their configs or generate files here. nix-minecraft
# supplies writable copies on each start and cleans them on stop.
files = lib.genAttrs [
"config"
"defaultconfigs"
"kubejs"
"scripts"
"patchouli_books"
] (dir: "${modpack}/${dir}");
};
};
networking.firewall.allowedUDPPorts = lib.mkIf cfg.openFirewall [ 24454 ];
};
}
-48
View File
@@ -1,48 +0,0 @@
{
lib,
stdenvNoCC,
fetchurl,
unzip,
}:
let
# These eight downloads come from startserver.sh in the official 2.0 pack.
requiredMods = map fetchurl (lib.importJSON ./required-mods.json);
in
stdenvNoCC.mkDerivation {
pname = "homestead-server-pack";
version = "2.0";
src = fetchurl {
name = "Homestead-2.0-Server.zip";
url = "https://drive.usercontent.google.com/download?id=1SpJBa80o_Jx_yqLjQ49pz7HP1FY2PCJj&export=download&confirm=t";
hash = "sha256-QVenE6dz+lZPHkC1hwL7Yy4lw6vg/Cr/8pnmK3iaK4o=";
};
nativeBuildInputs = [ unzip ];
dontUnpack = true;
dontConfigure = true;
dontBuild = true;
installPhase = ''
runHook preInstall
mkdir -p "$out"
unzip -q "$src" \
'mods/*' 'config/*' 'defaultconfigs/*' 'kubejs/*' \
'scripts/*' 'patchouli_books/*' 'server-icon.png' -d "$out"
${lib.concatMapStringsSep "\n" (mod: ''
install -m644 ${mod} "$out/mods/${mod.name}"
'') requiredMods}
runHook postInstall
'';
meta = {
description = "Homestead 2.0 server assets, including the eight separately downloaded mods";
homepage = "https://cozystudios.org/homestead/server-pack/";
# The pack contains mods with different licenses; do not redistribute it.
license = lib.licenses.unfree;
platforms = lib.platforms.linux;
};
}
@@ -1,42 +0,0 @@
[
{
"name": "balm-fabric-1.20.1-7.3.44.jar",
"url": "https://edge.forgecdn.net/files/8969/704/balm-fabric-1.20.1-7.3.44.jar",
"hash": "sha256-hMoKTCjV9cxwjuEqKQ+U4ixMntDxXZNM0MDCMPClpMY="
},
{
"name": "CraftTweaker-fabric-1.20.1-14.0.60.jar",
"url": "https://edge.forgecdn.net/files/7772/872/CraftTweaker-fabric-1.20.1-14.0.60.jar",
"hash": "sha256-y4Kl3wHCNr6oY8SxxZtgaS/ARGHWVIK/eW1EZizqiQA="
},
{
"name": "libraryferret-fabric-1.20.1-4.0.0.jar",
"url": "https://edge.forgecdn.net/files/4601/231/libraryferret-fabric-1.20.1-4.0.0.jar",
"hash": "sha256-d/UX69gN5R+fh62cTZIrNMQNfF+2iu1tl0zu0NthuG0="
},
{
"name": "sophisticatedbackpacks-1.20.1-3.23.4.5.110.jar",
"url": "https://edge.forgecdn.net/files/7147/929/sophisticatedbackpacks-1.20.1-3.23.4.5.110.jar",
"hash": "sha256-Fewy1BGnA4R0OldwrmoitxqEGK9/juu/+se/yKGDbA8="
},
{
"name": "sophisticatedcore-1.20.1-1.2.7.15.166.jar",
"url": "https://edge.forgecdn.net/files/7341/57/sophisticatedcore-1.20.1-1.2.7.15.166.jar",
"hash": "sha256-Fzmsti4i+ZQk8yQkuZYr2S0p4HUvVJWqEW35p8Hdgxo="
},
{
"name": "sophisticatedstorage-1.20.1-1.3.5.11.142.jar",
"url": "https://edge.forgecdn.net/files/8032/765/sophisticatedstorage-1.20.1-1.3.5.11.142.jar",
"hash": "sha256-VgjSIGpr0TJlhLUrTFp7Mpvpw/izOqOiQGAHiu0Lz4k="
},
{
"name": "trashslot-fabric-1.20.1-15.1.5.jar",
"url": "https://edge.forgecdn.net/files/8019/425/trashslot-fabric-1.20.1-15.1.5.jar",
"hash": "sha256-u876a68TrhF8ShNtf/ZrYlx1QLncwNQHe08jcIXuRAg="
},
{
"name": "wirelessredstone-fabric-1.20.1-1.1.2.jar",
"url": "https://edge.forgecdn.net/files/5175/782/wirelessredstone-fabric-1.20.1-1.1.2.jar",
"hash": "sha256-Kw8xy4ngmAgD9kEvwAjTS6KatJEnA6UPkI1X3xnWf48="
}
]
+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";
}
-90
View File
@@ -1,90 +0,0 @@
{
pkgs,
userName,
nur,
...
}: {
imports = [
../../pwrMgmt
../../networking/core.nix
../../virtualization/podman.nix
../../games/homestead
];
# Enable flakes for NixOS
nix.settings.experimental-features = ["nix-command" "flakes"];
# Custom kernel/boot stuff
boot.kernelPackages = pkgs.linuxPackages_latest;
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# Set your timezone
time.timeZone = "America/Detroit";
# Enable OpenSSH
services.openssh.enable = true;
# Enable keyring
services.gnome.gnome-keyring.enable = true;
# Enable GnuPG
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
# Enable SUID wrappers (some programs need them)
programs.mtr.enable = true;
# Enable Polkit
security.polkit.enable = true;
# Power management (see ../../pwrMgmt/default.nix)
pwrMgmt = {
enable = true;
cpuFreqGovernor = "performance";
powertop.enable = false;
};
network = {
firewall = {
enable = true;
};
networkManager.enable = true;
};
# Add username to groups "wheel" and "video" - more may be added here later
users = {
users = {
${userName} = {
extraGroups = [ "wheel" "network" ];
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFV9eSc9L+aJLoKoexq2f/jb5rpyZnhuGiyhS8YQAbaS wyatt@wyattjmiller.com"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO4WKvKnnYpTbzZHFEslOKyfiiMqWxhW3AfX6E7ACmYU wyatt@wyattjmiller.com"
];
};
};
};
services.fail2ban = {
enable = true;
package = pkgs.fail2ban;
maxretry = 5;
bantime = "3h";
bantime-increment = {
enable = true;
rndtime = "10m";
};
};
services.homestead = {
enable = true;
port = 25565;
openFirewall = true;
operators = { };
};
services.minecraft-servers.eula = true;
system.stateVersion = "26.05";
}
-6
View File
@@ -1,6 +0,0 @@
{ ... }: {
imports = [
./configuration.nix
./hardware-configuration.nix
];
}
@@ -1,30 +0,0 @@
# Do not modify this file! It was generated by ‘nixos-generate-config’
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/profiles/qemu-guest.nix")
];
boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "sr_mod" "virtio_blk" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/1f3b7704-ca5e-4099-942b-599b2350c171";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/66F5-4FEB";
fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ];
};
swapDevices = [ ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}
+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; [