Flake for my NixOS devices

Update, add gh-grader-preview

bwc9876.dev 9c093525 bb8d380d

verified
+118 -31
+105 -28
flake.lock
··· 31 31 ] 32 32 }, 33 33 "locked": { 34 - "lastModified": 1756741629, 35 - "narHash": "sha256-n+mgH3NoQf8d1jd8cDp/9Mt++hhyuE3LO3ZAxzjWRZw=", 34 + "lastModified": 1757320803, 35 + "narHash": "sha256-7PUIQOMQSJLkNtV42SAYUDw0mRdbBNl6q8pLN8GViwM=", 36 36 "owner": "catppuccin", 37 37 "repo": "nix", 38 - "rev": "cd22197da06df1eb6fabdaa2fc22c170c4f67382", 38 + "rev": "d75e3fe67f49728cb5035bc791f4b9065ff3a2c9", 39 39 "type": "github" 40 40 }, 41 41 "original": { ··· 45 45 } 46 46 }, 47 47 "crane": { 48 + "locked": { 49 + "lastModified": 1756705356, 50 + "narHash": "sha256-dpBFe8SqYKr7W6KN5QOVCr8N76SBKwTslzjw+4BVBVs=", 51 + "owner": "ipetkov", 52 + "repo": "crane", 53 + "rev": "305707bbc27d83aa1039378e91d7dd816f4cac10", 54 + "type": "github" 55 + }, 56 + "original": { 57 + "owner": "ipetkov", 58 + "repo": "crane", 59 + "type": "github" 60 + } 61 + }, 62 + "crane_2": { 48 63 "locked": { 49 64 "lastModified": 1754269165, 50 65 "narHash": "sha256-0tcS8FHd4QjbCVoxN9jI+PjHgA4vc/IjkUSp+N3zy0U=", ··· 143 158 ] 144 159 }, 145 160 "locked": { 146 - "lastModified": 1754487366, 147 - "narHash": "sha256-pHYj8gUBapuUzKV/kN/tR3Zvqc7o6gdFB9XKXIp1SQ8=", 161 + "lastModified": 1756770412, 162 + "narHash": "sha256-+uWLQZccFHwqpGqr2Yt5VsW/PbeJVTn9Dk6SHWhNRPw=", 148 163 "owner": "hercules-ci", 149 164 "repo": "flake-parts", 150 - "rev": "af66ad14b28a127c5c0f3bbb298218fc63528a18", 165 + "rev": "4524271976b625a4a605beefd893f270620fd751", 151 166 "type": "github" 152 167 }, 153 168 "original": { ··· 195 210 "type": "github" 196 211 } 197 212 }, 213 + "flakelight-rust": { 214 + "inputs": { 215 + "crane": "crane", 216 + "flakelight": "flakelight_3" 217 + }, 218 + "locked": { 219 + "lastModified": 1756817437, 220 + "narHash": "sha256-O8xyYYBJucwHMnqjoaNFEDYPJQ5nzwnuXjPoW2TCvYo=", 221 + "owner": "accelbread", 222 + "repo": "flakelight-rust", 223 + "rev": "af3cc6a17c210efb85d99ed3ea601f5d0b55b50f", 224 + "type": "github" 225 + }, 226 + "original": { 227 + "owner": "accelbread", 228 + "repo": "flakelight-rust", 229 + "type": "github" 230 + } 231 + }, 198 232 "flakelight_2": { 199 233 "inputs": { 200 234 "nixpkgs": [ ··· 216 250 } 217 251 }, 218 252 "flakelight_3": { 253 + "inputs": { 254 + "nixpkgs": [ 255 + "gh-grader-preview", 256 + "nixpkgs" 257 + ] 258 + }, 259 + "locked": { 260 + "lastModified": 1756730985, 261 + "narHash": "sha256-Uv5lLUZfFxQv6RHi1TqLTKso0j0eUVMQQwud29LTV/s=", 262 + "owner": "nix-community", 263 + "repo": "flakelight", 264 + "rev": "950121d809b75c32e73684b32ccba8d4e8a67703", 265 + "type": "github" 266 + }, 267 + "original": { 268 + "owner": "nix-community", 269 + "repo": "flakelight", 270 + "type": "github" 271 + } 272 + }, 273 + "flakelight_4": { 219 274 "inputs": { 220 275 "nixpkgs": [ 221 276 "nu_plugin_dbus", ··· 236 291 "type": "github" 237 292 } 238 293 }, 239 - "flakelight_4": { 294 + "flakelight_5": { 240 295 "inputs": { 241 296 "nixpkgs": [ 242 297 "wayland-mpris-idle-inhibit", ··· 257 312 "type": "github" 258 313 } 259 314 }, 315 + "gh-grader-preview": { 316 + "inputs": { 317 + "flakelight-rust": "flakelight-rust", 318 + "nixpkgs": [ 319 + "nixpkgs" 320 + ] 321 + }, 322 + "locked": { 323 + "lastModified": 1757088556, 324 + "narHash": "sha256-l2cBwf1ERYy77IXUoaB9KDWoEwwA4SUNUZ5/0CTufZ0=", 325 + "owner": "Bwc9876", 326 + "repo": "gh-grader-preview", 327 + "rev": "c4da97ef8e7bced77cdc859ad980491391de9ee0", 328 + "type": "github" 329 + }, 330 + "original": { 331 + "owner": "Bwc9876", 332 + "repo": "gh-grader-preview", 333 + "type": "github" 334 + } 335 + }, 260 336 "gitignore": { 261 337 "inputs": { 262 338 "nixpkgs": [ ··· 286 362 ] 287 363 }, 288 364 "locked": { 289 - "lastModified": 1757075491, 290 - "narHash": "sha256-a+NMGl5tcvm+hyfSG2DlVPa8nZLpsumuRj1FfcKb2mQ=", 365 + "lastModified": 1757256385, 366 + "narHash": "sha256-WK7tOhWwr15mipcckhDg2no/eSpM1nIh4C9le8HgHhk=", 291 367 "owner": "nix-community", 292 368 "repo": "home-manager", 293 - "rev": "f56bf065f9abedc7bc15e1f2454aa5c8edabaacf", 369 + "rev": "f35703b412c67b48e97beb6e27a6ab96a084cd37", 294 370 "type": "github" 295 371 }, 296 372 "original": { ··· 344 420 }, 345 421 "lanzaboote": { 346 422 "inputs": { 347 - "crane": "crane", 423 + "crane": "crane_2", 348 424 "flake-compat": "flake-compat", 349 425 "flake-parts": "flake-parts", 350 426 "nixpkgs": [ ··· 374 450 ] 375 451 }, 376 452 "locked": { 377 - "lastModified": 1756612744, 378 - "narHash": "sha256-/glV6VAq8Va3ghIbmhET3S1dzkbZqicsk5h+FtvwiPE=", 453 + "lastModified": 1757218147, 454 + "narHash": "sha256-IwOwN70HvoBNB2ckaROxcaCvj5NudNc52taPsv5wtLk=", 379 455 "owner": "nix-community", 380 456 "repo": "nix-index-database", 381 - "rev": "3fe768e1f058961095b4a0d7a2ba15dc9736bdc6", 457 + "rev": "9b144dc3ef6e42b888c4190e02746aab13b0e97f", 382 458 "type": "github" 383 459 }, 384 460 "original": { ··· 404 480 }, 405 481 "nixpkgs": { 406 482 "locked": { 407 - "lastModified": 1756787288, 408 - "narHash": "sha256-rw/PHa1cqiePdBxhF66V7R+WAP8WekQ0mCDG4CFqT8Y=", 483 + "lastModified": 1757068644, 484 + "narHash": "sha256-NOrUtIhTkIIumj1E/Rsv1J37Yi3xGStISEo8tZm3KW4=", 409 485 "owner": "NixOS", 410 486 "repo": "nixpkgs", 411 - "rev": "d0fc30899600b9b3466ddb260fd83deb486c32f1", 487 + "rev": "8eb28adfa3dc4de28e792e3bf49fcf9007ca8ac9", 412 488 "type": "github" 413 489 }, 414 490 "original": { ··· 428 504 "systems": "systems_2" 429 505 }, 430 506 "locked": { 431 - "lastModified": 1757176284, 432 - "narHash": "sha256-j4SBmYsARwNG0DHljZ1uzZlGqCIU5fzCMA2g+GjD0xw=", 507 + "lastModified": 1757327900, 508 + "narHash": "sha256-eQE1fpafP31ovR77C3X2e/xIDGk/+iOF1ck1Q7+D0aQ=", 433 509 "owner": "nix-community", 434 510 "repo": "nixvim", 435 - "rev": "7afdd40b96c9168aa4cb49b86fc67eccd441cae5", 511 + "rev": "cf170ed677fa595ec0370e83278c0d40c6c2638c", 436 512 "type": "github" 437 513 }, 438 514 "original": { ··· 443 519 }, 444 520 "nu_plugin_dbus": { 445 521 "inputs": { 446 - "flakelight": "flakelight_3", 522 + "flakelight": "flakelight_4", 447 523 "nixpkgs": [ 448 524 "nixpkgs" 449 525 ] ··· 472 548 ] 473 549 }, 474 550 "locked": { 475 - "lastModified": 1755555503, 476 - "narHash": "sha256-WiOO7GUOsJ4/DoMy2IC5InnqRDSo2U11la48vCCIjjY=", 551 + "lastModified": 1756738487, 552 + "narHash": "sha256-8QX7Ab5CcICp7zktL47VQVS+QeaU4YDNAjzty7l7TQE=", 477 553 "owner": "NuschtOS", 478 554 "repo": "search", 479 - "rev": "6f3efef888b92e6520f10eae15b86ff537e1d2ea", 555 + "rev": "5feeaeefb571e6ca2700888b944f436f7c05149b", 480 556 "type": "github" 481 557 }, 482 558 "original": { ··· 566 642 "bingus": "bingus", 567 643 "catppuccin": "catppuccin", 568 644 "flakelight": "flakelight_2", 645 + "gh-grader-preview": "gh-grader-preview", 569 646 "hm": "hm", 570 647 "imperm": "imperm", 571 648 "lanzaboote": "lanzaboote", ··· 607 684 ] 608 685 }, 609 686 "locked": { 610 - "lastModified": 1757125853, 611 - "narHash": "sha256-noKkYHKpT5lpvNSYrlH56d8cedthZfs010Uv6vTqLT4=", 687 + "lastModified": 1757298987, 688 + "narHash": "sha256-yuFSw6fpfjPtVMmym51ozHYpJQ7SzVOTkk7tUv2JA0U=", 612 689 "owner": "oxalica", 613 690 "repo": "rust-overlay", 614 - "rev": "8b70793a6be183536a5d562056dac10b7b36820d", 691 + "rev": "cfd63776bde44438ff2936f0c9194c79dd407a5f", 615 692 "type": "github" 616 693 }, 617 694 "original": { ··· 740 817 }, 741 818 "wayland-mpris-idle-inhibit": { 742 819 "inputs": { 743 - "flakelight": "flakelight_4", 820 + "flakelight": "flakelight_5", 744 821 "nixpkgs": [ 745 822 "nixpkgs" 746 823 ]
+3
flake.nix
··· 23 23 imperm.url = "github:nix-community/impermanence"; 24 24 nu_plugin_dbus.url = "github:Bwc9876/nu_plugin_dbus"; 25 25 nu_plugin_dbus.inputs.nixpkgs.follows = "nixpkgs"; 26 + gh-grader-preview.url = "github:Bwc9876/gh-grader-preview"; 27 + gh-grader-preview.inputs.nixpkgs.follows = "nixpkgs"; 26 28 bingus.url = "github:Bwc9876/bingus-bot"; 27 29 bingus.inputs.nixpkgs.follows = "nixpkgs"; 28 30 ··· 51 53 nu_plugin_dbus, 52 54 bingus, 53 55 spoon, 56 + gh-grader-preview, 54 57 }: 55 58 flakelight ./. { 56 59 imports = [
+6 -1
nixosModules/dev/misc.nix
··· 1 - {pkgs, ...}: { 1 + { 2 + pkgs, 3 + inputs', 4 + ... 5 + }: { 2 6 environment.systemPackages = with pkgs; [ 3 7 # Build Tools 4 8 pkg-config ··· 18 22 19 23 # Debug 20 24 wev 25 + inputs'.gh-grader-preview.packages.default 21 26 ]; 22 27 23 28 users.users.bean.extraGroups = ["wireshark"];
+3 -1
res/custom_waybar_modules/newsboat.nu
··· 1 1 #!/usr/bin/env nu 2 2 3 + const WAIT: duration = 30min; 4 + 3 5 let NB_DB = $"($env.HOME)/.local/share/newsboat/cache.db"; 4 6 5 7 let nb_running = (pidof "newsboat" | complete).exit_code == 0; 6 8 7 - let need_cooldown = ((date now) - (ls $NB_DB | first | get modified)) < 1min; 9 + let need_cooldown = ((date now) - (ls $NB_DB | first | get modified)) < $WAIT; 8 10 9 11 if (not $need_cooldown and not $nb_running) { 10 12 let refreshing = {
+1 -1
systemConfigs/installer.nix
··· 1 1 {outputs, ...}: { 2 2 system = "x86_64-linux"; 3 3 modules = [ 4 - (outputs.lib.applyRoles ["base" "latest-linux" "black-mesa-cache"]) 4 + (outputs.lib.applyRoles ["base" "latest-linux"]) 5 5 ({ 6 6 pkgs, 7 7 lib,