1
0
Fork 0
nix-overlay/flake.nix

62 lines
2.3 KiB
Nix
Raw Normal View History

2021-12-14 17:54:48 +00:00
{
description = "Collection of (useful) tools";
2023-05-10 21:29:38 +00:00
inputs = {
2023-10-05 16:12:34 +00:00
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable-small";
2021-12-14 17:54:48 +00:00
2023-05-10 23:04:05 +00:00
flake-parts.url = "github:hercules-ci/flake-parts";
2023-05-10 21:29:38 +00:00
neovim-flake = {
url = "github:neovim/neovim?dir=contrib";
inputs.nixpkgs.follows = "nixpkgs";
};
};
2023-05-10 23:04:05 +00:00
outputs = inputs@{ flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = [
2021-12-14 17:54:48 +00:00
"aarch64-darwin"
"x86_64-darwin"
2022-07-31 18:41:26 +00:00
"x86_64-linux"
2023-05-10 23:04:05 +00:00
"aarch64-linux"
];
2023-05-10 21:29:38 +00:00
2023-05-10 23:04:05 +00:00
imports = [
flake-parts.flakeModules.easyOverlay
];
2023-05-10 21:29:38 +00:00
2023-05-10 23:04:05 +00:00
perSystem = { inputs', system, config, pkgs, lib, ... }: {
packages =
let
darwinPackages =
if lib.hasSuffix "darwin" system then rec {
agilebits-op = import ./packages/agilebits-op.nix { inherit pkgs lib; };
cliclick = import ./packages/cliclick.nix { inherit pkgs lib; };
phantomjs = import ./packages/phantomjs.nix { inherit pkgs lib; };
2023-11-23 15:45:00 +00:00
tabnine = import ./packages/tabnine.nix { inherit pkgs lib; };
2023-10-05 16:12:34 +00:00
} else { };
2023-05-10 23:04:05 +00:00
in
{
anonymous-overflow = import ./packages/anonymous-overflow.nix { inherit pkgs lib; };
2023-11-02 15:32:26 +00:00
bulk-downloader-for-reddit = import ./packages/bulk-downloader-for-reddit.nix { inherit pkgs lib; };
2023-05-10 23:04:05 +00:00
fennel-ls = import ./packages/fennel-ls.nix { inherit pkgs lib; };
2023-09-21 14:31:45 +00:00
headscale-ui = import ./packages/headscale-ui.nix { inherit pkgs lib; };
2023-08-09 00:10:16 +00:00
lexical = import ./packages/lexical.nix { inherit pkgs lib; };
2023-10-28 14:30:43 +00:00
neovim-nightly = import ./packages/neovim-nightly.nix { inherit (inputs'.neovim-flake.packages) neovim; inherit pkgs lib; };
2023-05-10 23:04:05 +00:00
nitter-unstable = import ./packages/nitter-unstable.nix { inherit pkgs lib; };
q = import ./packages/q.nix { inherit pkgs lib; };
2023-08-18 10:36:01 +00:00
rexit = import ./packages/rexit.nix { inherit pkgs lib; };
2023-05-10 23:04:05 +00:00
rimgo = import ./packages/rimgo.nix { inherit pkgs lib; };
2023-05-23 00:04:06 +00:00
vuetorrent = import ./packages/vuetorrent.nix { inherit pkgs lib; };
2023-05-17 22:28:32 +00:00
weewx-proxy = import ./packages/weewx-proxy.nix { inherit pkgs lib; };
2023-05-10 23:04:05 +00:00
} // darwinPackages;
2021-12-14 17:54:48 +00:00
2023-05-10 23:04:05 +00:00
overlayAttrs = config.packages;
};
flake = {
overlay = inputs.self.overlays.default;
};
};
2021-12-14 17:54:48 +00:00
}