My nixos configuration

chore: use statix from nixpkgs

Changed files
+3 -106
checks
home
configurations
+1 -2
checks/default.nix
··· 1 1 inputs: let 2 2 pkgs = inputs.unstable.legacyPackages.x86_64-linux; 3 3 apkgs = inputs.alejandra.packages.x86_64-linux; 4 - spkgs = inputs.statix.packages.x86_64-linux; 5 4 6 - callPackage = pkgs.lib.callPackageWith (pkgs // apkgs // spkgs // {inherit (inputs) self;}); 5 + callPackage = pkgs.lib.callPackageWith (pkgs // apkgs // {inherit (inputs) self;}); 7 6 in { 8 7 alejandra = callPackage ./alejandra.nix {}; 9 8 statix = callPackage ./statix.nix {};
-97
flake.lock
··· 64 64 "type": "github" 65 65 } 66 66 }, 67 - "fenix_2": { 68 - "inputs": { 69 - "nixpkgs": [ 70 - "statix", 71 - "nixpkgs" 72 - ], 73 - "rust-analyzer-src": "rust-analyzer-src_2" 74 - }, 75 - "locked": { 76 - "lastModified": 1645251813, 77 - "narHash": "sha256-cQ66tGjnZclBCS3nD26mZ5fUH+3/HnysGffBiWXUSHk=", 78 - "owner": "nix-community", 79 - "repo": "fenix", 80 - "rev": "9892337b588c38ec59466a1c89befce464aae7f8", 81 - "type": "github" 82 - }, 83 - "original": { 84 - "owner": "nix-community", 85 - "repo": "fenix", 86 - "type": "github" 87 - } 88 - }, 89 67 "flake-utils": { 90 68 "locked": { 91 69 "lastModified": 1667395993, ··· 144 122 "original": { 145 123 "owner": "edolstra", 146 124 "repo": "flake-compat", 147 - "type": "github" 148 - } 149 - }, 150 - "gitignore": { 151 - "inputs": { 152 - "nixpkgs": [ 153 - "statix", 154 - "nixpkgs" 155 - ] 156 - }, 157 - "locked": { 158 - "lastModified": 1635165013, 159 - "narHash": "sha256-o/BdVjNwcB6jOmzZjOH703BesSkkS5O7ej3xhyO8hAY=", 160 - "owner": "hercules-ci", 161 - "repo": "gitignore.nix", 162 - "rev": "5b9e0ff9d3b551234b4f3eb3983744fa354b17f1", 163 - "type": "github" 164 - }, 165 - "original": { 166 - "owner": "hercules-ci", 167 - "repo": "gitignore.nix", 168 125 "type": "github" 169 126 } 170 127 }, ··· 456 413 "type": "indirect" 457 414 } 458 415 }, 459 - "nixpkgs_5": { 460 - "locked": { 461 - "lastModified": 1645013224, 462 - "narHash": "sha256-b7OEC8vwzJv3rsz9pwnTX2LQDkeOWz2DbKypkVvNHXc=", 463 - "owner": "nixos", 464 - "repo": "nixpkgs", 465 - "rev": "b66b39216b1fef2d8c33cc7a5c72d8da80b79970", 466 - "type": "github" 467 - }, 468 - "original": { 469 - "owner": "nixos", 470 - "ref": "nixpkgs-unstable", 471 - "repo": "nixpkgs", 472 - "type": "github" 473 - } 474 - }, 475 416 "parts": { 476 417 "inputs": { 477 418 "nixpkgs-lib": "nixpkgs-lib" ··· 531 472 "nixpkgs-insync": "nixpkgs-insync", 532 473 "parts": "parts", 533 474 "programsdb": "programsdb", 534 - "statix": "statix", 535 475 "unstable": "unstable" 536 476 } 537 477 }, ··· 552 492 "type": "github" 553 493 } 554 494 }, 555 - "rust-analyzer-src_2": { 556 - "flake": false, 557 - "locked": { 558 - "lastModified": 1645205556, 559 - "narHash": "sha256-e4lZW3qRyOEJ+vLKFQP7m2Dxh5P44NrnekZYLxlucww=", 560 - "owner": "rust-analyzer", 561 - "repo": "rust-analyzer", 562 - "rev": "acf5874b39f3dc5262317a6074d9fc7285081161", 563 - "type": "github" 564 - }, 565 - "original": { 566 - "owner": "rust-analyzer", 567 - "ref": "nightly", 568 - "repo": "rust-analyzer", 569 - "type": "github" 570 - } 571 - }, 572 495 "rust-overlay": { 573 496 "inputs": { 574 497 "flake-utils": [ ··· 591 514 "original": { 592 515 "owner": "oxalica", 593 516 "repo": "rust-overlay", 594 - "type": "github" 595 - } 596 - }, 597 - "statix": { 598 - "inputs": { 599 - "fenix": "fenix_2", 600 - "gitignore": "gitignore", 601 - "nixpkgs": "nixpkgs_5" 602 - }, 603 - "locked": { 604 - "lastModified": 1673173471, 605 - "narHash": "sha256-P+Y1vjr5uuuuK7vxDeRP0JfrbP3LV/COQ3/aWQTDLWo=", 606 - "owner": "nerdypepper", 607 - "repo": "statix", 608 - "rev": "f0267dfb72971a074180b351c927573008c54b06", 609 - "type": "github" 610 - }, 611 - "original": { 612 - "owner": "nerdypepper", 613 - "repo": "statix", 614 517 "type": "github" 615 518 } 616 519 },
-1
flake.nix
··· 30 30 31 31 nixos-vscode-server.url = "github:msteen/nixos-vscode-server"; 32 32 33 - statix.url = "github:nerdypepper/statix"; 34 33 alejandra.url = "github:kamadorueda/alejandra/3.0.0"; 35 34 }; 36 35
+1 -5
home/configurations/nmelzer@enceladeus.nix
··· 1 - { 2 - self, 3 - statix, 4 - ... 5 - }: { 1 + {self, ...}: { 6 2 config, 7 3 pkgs, 8 4 lib,
+1 -1
lefthook.yml
··· 7 7 8 8 linting: 9 9 glob: "*.nix" 10 - run: nix run --option allow-import-from-derivation true --inputs-from . statix -- check 10 + run: nix run --inputs-from . nixpkgs#statix -- check 11 11 12 12 statix: 13 13 parallel: false