refactor(flake.nix): Use flake-parts to simplify flake.nix

This commit is contained in:
Tristan Daniël Maat 2026-02-20 05:33:26 +08:00
parent f7a64063bb
commit 10e72d3c19
Signed by: tlater
GPG key ID: 02E935006CF2E8E7
10 changed files with 380 additions and 271 deletions

32
flake.lock generated
View file

@ -46,7 +46,9 @@
"deploy-rs",
"flake-compat"
],
"flake-parts": "flake-parts",
"flake-parts": [
"flake-parts"
],
"nix-test-runner": "nix-test-runner",
"nixpkgs": [
"sonnenshift",
@ -154,18 +156,14 @@
},
"flake-parts": {
"inputs": {
"nixpkgs-lib": [
"sonnenshift",
"crate2nix",
"nixpkgs"
]
"nixpkgs-lib": "nixpkgs-lib"
},
"locked": {
"lastModified": 1712014858,
"narHash": "sha256-sB4SWl2lX95bExY2gMFG5HIzvva5AVMJd4Igm+GpZNw=",
"lastModified": 1769996383,
"narHash": "sha256-AnYjnFWgS49RlqX7LrC4uA+sCCDBj0Ry/WOJ5XWAsa0=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "9126214d0a59633752a136528f5f3b9aa8565b7d",
"rev": "57928607ea566b5db3ad13af0e57e921e6b12381",
"type": "github"
},
"original": {
@ -266,6 +264,21 @@
"url": "https://channels.nixos.org/nixos-25.11/nixexprs.tar.xz"
}
},
"nixpkgs-lib": {
"locked": {
"lastModified": 1769909678,
"narHash": "sha256-cBEymOf4/o3FD5AZnzC3J9hLbiZ+QDT/KDuyHXVJOpM=",
"owner": "nix-community",
"repo": "nixpkgs.lib",
"rev": "72716169fe93074c333e8d0173151350670b824c",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nixpkgs.lib",
"type": "github"
}
},
"pre-commit-hooks": {
"inputs": {
"flake-compat": [
@ -309,6 +322,7 @@
"inputs": {
"deploy-rs": "deploy-rs",
"disko": "disko",
"flake-parts": "flake-parts",
"flint": "flint",
"foundryvtt": "foundryvtt",
"nixpkgs": "nixpkgs",