Remove flake-parts

This commit is contained in:
ItsDrike 2024-02-28 23:40:50 +01:00
parent f35c496905
commit 7f1b8b5d38
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0
3 changed files with 10 additions and 43 deletions

View file

@ -1,25 +1,5 @@
{ {
"nodes": { "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": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1708655239, "lastModified": 1708655239,
@ -38,7 +18,6 @@
}, },
"root": { "root": {
"inputs": { "inputs": {
"flake-parts": "flake-parts",
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
} }
} }

View file

@ -3,19 +3,10 @@
inputs = { inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-parts = {
url = "github:hercules-ci/flake-parts";
inputs.nixpkgs-lib.follows = "nixpkgs";
};
}; };
outputs = {nixpkgs, ...} @ inputs: outputs = {self, nixpkgs, ...} @ inputs: let
inputs.flake-parts.lib.mkFlake { inherit inputs; } { in {
systems = ["x86_64-linux"]; nixosConfigurations = import ./hosts {inherit nixpkgs inputs self;};
imports = [
./hosts
];
}; };
} }

View file

@ -1,11 +1,8 @@
{self, inputs, ...}: { {self, inputs, ...}: let
flake.nixosConfigurations = let inherit (inputs.nixpkgs) lib;
inherit (inputs.nixpkgs.lib) nixosSystem; in {
specialArgs = {inherit inputs self;}; vboxnix = lib.nixosSystem {
in { system = "x86_64-linux";
vboxnix = nixosSystem {
inherit specialArgs;
modules = [ ../system ./vbox_nix ]; modules = [ ../system ./vbox_nix ];
}; };
};
} }