ark/flake.nix

53 lines
1.5 KiB
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-07-01 04:45:26 +03:00
nur.url = "github:nix-community/NUR";
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-05-28 16:12:53 +03:00
2022-06-10 21:36:34 +03:00
smos.url = "github:yusdacra/smos/chore/fix-nix-flakes";
smos.flake = false;
2022-06-21 23:31:28 +03:00
helix.url = "github:helix-editor/helix";
helix.inputs.nixpkgs.follows = "nixpkgs";
2022-07-01 04:45:26 +03:00
hyprland.url = "github:hyprwm/Hyprland";
hyprland.inputs.nixpkgs.follows = "nixpkgs";
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 {
2022-05-28 16:12:53 +03:00
inherit system lib inputs;
2022-04-10 05:48:34 +03:00
tlib = prev;
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
});
2022-07-01 04:45:26 +03:00
allPkgs = tlib.genPkgs (x: x);
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;};
2022-07-01 04:45:26 +03:00
packages = lib.mapAttrs (_: pkgs: pkgs._exported) allPkgs;
apps =
lib.mapAttrs
(
_: pkgs: {
generate-firefox-addons = {
type = "app";
program = toString "${pkgs.generate-firefox-addons}/bin/generate-firefox-addons";
};
}
)
allPkgs;
2022-04-10 05:48:34 +03:00
devShells = import ./shells {inherit lib tlib inputs;};
2022-04-09 21:33:13 +03:00
};
2019-12-03 08:18:30 +03:00
}