ark/flake.nix

34 lines
959 B
Nix
Raw Normal View History

2019-12-03 08:18:30 +03:00
{
2022-04-09 21:33:13 +03:00
description = "config!!!";
2022-04-09 18:01:35 +03:00
2022-04-09 21:33:13 +03:00
inputs = {
2022-04-17 19:20:06 +03:00
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
2022-04-09 18:01:35 +03:00
2022-04-17 19:20:06 +03:00
home.url = "github:nix-community/home-manager/master";
home.inputs.nixpkgs.follows = "nixpkgs";
2022-04-09 18:01:35 +03:00
2022-04-09 21:33:13 +03:00
nixos-hardware.url = "github:nixos/nixos-hardware";
nixos-persistence.url = "github:nix-community/impermanence";
2022-02-18 20:31:01 +03:00
};
2022-04-09 18:01:35 +03:00
2022-04-09 21:33:13 +03:00
outputs = inputs: let
2022-04-17 19:20:06 +03:00
lib = inputs.nixpkgs.lib.extend (_: _: builtins);
2022-04-10 05:48:34 +03:00
tlib = (import ./lib lib).extend (_: prev: rec {
2022-04-09 21:33:13 +03:00
makePkgs = system:
import ./pkgs-set {
inherit system lib;
2022-04-10 05:48:34 +03:00
tlib = prev;
2022-04-17 19:20:06 +03:00
channel = inputs.nixpkgs;
2022-04-09 18:01:35 +03:00
};
2022-04-10 05:48:34 +03:00
genPkgs = f: prev.genSystems (system: f (makePkgs system));
2022-04-09 21:33:13 +03:00
});
in rec {
2022-04-10 05:48:34 +03:00
nixosConfigurations = import ./hosts {inherit lib tlib inputs;};
packages = tlib.genPkgs (pkgs: pkgs._exported);
devShells = import ./shells {inherit lib tlib inputs;};
2022-04-09 21:33:13 +03:00
devShell = lib.mapAttrs (_: value: value.default) devShells;
};
2019-12-03 08:18:30 +03:00
}