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,
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";

View file

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