flake: lib: convert to 'flake-parts'
This commit is contained in:
parent
a88c99b9d7
commit
b2f3bc955c
|
@ -71,8 +71,6 @@ let
|
|||
};
|
||||
|
||||
systemIndependant = {
|
||||
lib = import ./lib.nix inputs;
|
||||
|
||||
nixosConfigurations = import ./nixos.nix inputs;
|
||||
};
|
||||
in
|
||||
|
@ -80,6 +78,7 @@ flake-parts.lib.mkFlake { inherit inputs; } {
|
|||
systems = mySystems;
|
||||
|
||||
imports = [
|
||||
./lib.nix
|
||||
./overlays.nix
|
||||
];
|
||||
|
||||
|
|
|
@ -1,7 +1,11 @@
|
|||
{ self, nixpkgs, ... } @ inputs:
|
||||
{ self, inputs, ... }:
|
||||
let
|
||||
inherit (inputs) nixpkgs;
|
||||
|
||||
lib = nixpkgs.lib.extend (final: _: {
|
||||
my = import "${self}/lib" { inherit inputs; pkgs = nixpkgs; lib = final; };
|
||||
});
|
||||
in
|
||||
lib
|
||||
{
|
||||
flake.lib = lib;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue