forked from poz/niksos
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,
|
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";
|
||||||
|
|
|
@ -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";
|
||||||
|
|
Loading…
Reference in a new issue