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": {
"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,
@ -38,7 +18,6 @@
},
"root": {
"inputs": {
"flake-parts": "flake-parts",
"nixpkgs": "nixpkgs"
}
}

View file

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

View file

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