Move to flake-parts

This commit is contained in:
ItsDrike 2024-02-24 22:07:53 +01:00
parent 63a3e84eda
commit cb2e2f3906
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0
2 changed files with 37 additions and 7 deletions

View file

@ -1,5 +1,25 @@
{
"nodes": {
"flake-parts": {
"inputs": {
"nixpkgs-lib": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1706830856,
"narHash": "sha256-a0NYyp+h9hlb7ddVz4LUn1vT/PLwqfrWYcHMvFB1xYg=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "b253292d9c0a5ead9bc98c4e9a26c6312e27d69f",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "flake-parts",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1708655239,
@ -18,6 +38,7 @@
},
"root": {
"inputs": {
"flake-parts": "flake-parts",
"nixpkgs": "nixpkgs"
}
}

View file

@ -3,14 +3,23 @@
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-parts = {
url = "github:hercules-ci/flake-parts";
inputs.nixpkgs-lib.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, ...} @ inputs: {
outputs = {nixpkgs, ...} @ inputs:
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
systems = ["x86_64-linux"];
flake = {
nixosConfigurations = {
nixos = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [ ./configuration.nix ];
};
};
};
};
}