refactor lib a bit thanks raf

This commit is contained in:
jacekpoz 2024-03-19 00:04:33 +01:00
parent d7ae4faf34
commit a65507f822
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8
2 changed files with 7 additions and 5 deletions

View file

@ -5,10 +5,12 @@
self, self,
nixpkgs, nixpkgs,
... ...
} @ inputs: let } @ inputs: {
inherit (nixpkgs) lib; # TODO steal this from raf when I have time and energy
in { #lib = import (self + /lib) { inherit inputs; };
nixosConfigurations = import ./hosts {inherit nixpkgs inputs lib;}; lib = nixpkgs.lib;
nixosConfigurations = import ./hosts { inherit nixpkgs inputs; };
}; };
inputs = { inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";

View file

@ -1,9 +1,9 @@
{ {
lib,
inputs, inputs,
... ...
}: let }: let
inherit (inputs) self; inherit (inputs) self;
inherit (self) lib;
in { in {
niks = lib.nixosSystem { niks = lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";