refactor lib a bit thanks raf
This commit is contained in:
parent
d7ae4faf34
commit
a65507f822
2 changed files with 7 additions and 5 deletions
10
flake.nix
10
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";
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
{
|
||||
lib,
|
||||
inputs,
|
||||
...
|
||||
}: let
|
||||
inherit (inputs) self;
|
||||
inherit (self) lib;
|
||||
in {
|
||||
niks = lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
|
|
Loading…
Reference in a new issue