diff --git a/flake.nix b/flake.nix index 4cfc8ae..7edf5e6 100644 --- a/flake.nix +++ b/flake.nix @@ -5,10 +5,12 @@ self, nixpkgs, ... - } @ inputs: let - inherit (nixpkgs) lib; - in { - nixosConfigurations = import ./hosts {inherit nixpkgs inputs lib;}; + } @ inputs: { + # TODO steal this from raf when I have time and energy + #lib = import (self + /lib) { inherit inputs; }; + lib = nixpkgs.lib; + + nixosConfigurations = import ./hosts { inherit nixpkgs inputs; }; }; inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; diff --git a/hosts/default.nix b/hosts/default.nix index da0d018..e796e58 100644 --- a/hosts/default.nix +++ b/hosts/default.nix @@ -1,9 +1,9 @@ { - lib, inputs, ... }: let inherit (inputs) self; + inherit (self) lib; in { niks = lib.nixosSystem { system = "x86_64-linux";