ark/flake.nix

62 lines
1.7 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-07-30 05:03:10 +03:00
nixinate.url = "github:matthewcroughan/nixinate";
2022-07-30 05:14:17 +03:00
nixinate.inputs.nixpkgs.follows = "nixpkgs";
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-07-18 19:34:54 +03:00
fufexan.url = "github:fufexan/dotfiles";
fufexan.flake = false;
2022-07-30 06:54:32 +03:00
blog.url = "gitlab:yusdacra/yusdacra.gitlab.io";
blog.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-30 05:03:10 +03:00
2022-07-01 04:45:26 +03:00
allPkgs = tlib.genPkgs (x: x);
2022-04-10 05:48:34 +03:00
2022-07-30 05:03:10 +03:00
miscApps =
2022-07-01 04:45:26 +03:00
lib.mapAttrs
(
_: pkgs: {
generate-firefox-addons = {
type = "app";
2022-07-30 05:03:10 +03:00
program =
toString
"${pkgs.generate-firefox-addons}/bin/generate-firefox-addons";
2022-07-01 04:45:26 +03:00
};
}
)
allPkgs;
2022-07-30 05:03:10 +03:00
in rec {
nixosConfigurations = import ./hosts {inherit lib tlib inputs;};
packages = lib.mapAttrs (_: pkgs: pkgs._exported) allPkgs;
apps = miscApps // (inputs.nixinate.nixinate.x86_64-linux inputs.self);
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
}