ark/flake.nix

87 lines
2.6 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 = {
2023-02-05 23:23:38 +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
2022-09-12 02:24:41 +03:00
nixpkgs-wayland.url = "github:nix-community/nixpkgs-wayland";
nixpkgs-wayland.flake = false;
2022-06-21 23:31:28 +03:00
helix.url = "github:helix-editor/helix";
2022-09-12 02:24:41 +03:00
2022-08-11 02:57:40 +03:00
blog.url = "git+https://git.gaze.systems/dusk/website.git";
2022-07-30 06:54:32 +03:00
blog.inputs.nixpkgs.follows = "nixpkgs";
2022-09-12 02:24:41 +03:00
2022-07-30 10:44:10 +03:00
bernbot.url = "github:yusdacra/bernbot";
bernbot.inputs.nixpkgs.follows = "nixpkgs";
2022-09-12 02:24:41 +03:00
2023-03-16 17:59:13 +03:00
blender-bin.url = "github:edolstra/nix-warez?dir=blender";
blender-bin.inputs.nixpkgs.follows = "nixpkgs";
conduit.url = "gitlab:famedly/conduit";
conduit.inputs.nixpkgs.follows = "nixpkgs";
2022-08-14 04:09:46 +03:00
nil.url = "github:oxalica/nil";
nil.inputs.nixpkgs.follows = "nixpkgs";
2022-09-12 02:24:41 +03:00
2023-02-25 02:08:04 +03:00
# needed for hyprland setup
2023-03-16 17:59:13 +03:00
# hyprland.url = "github:hyprwm/Hyprland";
# hyprland.inputs.nixpkgs.follows = "nixpkgs";
# hyprland-contrib.url = "github:hyprwm/contrib";
# hyprland-contrib.inputs.nixpkgs.follows = "nixpkgs";
2023-02-25 02:08:04 +03:00
# eww.url = "github:elkowar/eww";
# eww.inputs.nixpkgs.follows = "nixpkgs";
2022-10-04 02:08:44 +03:00
nix-colors.url = "github:Misterio77/nix-colors";
2023-02-25 00:44:31 +03:00
# catppuccin-discord.url = "https://catppuccin.github.io/discord/dist/catppuccin-mocha.theme.css";
# catppuccin-discord.flake = false;
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-08-14 06:17:15 +03:00
in {
2022-10-04 02:08:44 +03:00
lib = tlib;
2022-07-30 05:03:10 +03:00
nixosConfigurations = import ./hosts {inherit lib tlib inputs;};
packages = lib.mapAttrs (_: pkgs: pkgs._exported) allPkgs;
2022-08-15 02:00:20 +03:00
legacyPackages = allPkgs;
2022-07-30 05:03:10 +03:00
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
}