2024-05-20 01:17:07 -04:00
|
|
|
let
|
|
|
|
inherit (builtins) listToAttrs map removeAttrs;
|
|
|
|
|
|
|
|
# Misc functions
|
|
|
|
mkInput = {type ? "github", ...} @ info: info // {inherit type;};
|
|
|
|
mkDep = info: (mkInput info) // {inputs.nixpkgs.follows = "nixpkgs";};
|
2024-05-22 20:17:36 -04:00
|
|
|
mkHyprDep = info: (mkInput info) // {inputs.hyprland.follows = "hyprland";};
|
2024-05-20 01:17:07 -04:00
|
|
|
mkSrc = info: (mkInput info) // {flake = false;};
|
|
|
|
|
|
|
|
# Inputs
|
|
|
|
nixTools = {
|
2024-05-29 21:18:50 -04:00
|
|
|
nurl = mkDep {
|
|
|
|
owner = "matt1432";
|
2024-05-20 01:17:07 -04:00
|
|
|
repo = "nurl";
|
|
|
|
};
|
|
|
|
|
|
|
|
nix-index-db = mkDep {
|
|
|
|
owner = "Mic92";
|
|
|
|
repo = "nix-index-database";
|
|
|
|
};
|
|
|
|
|
2024-05-22 20:17:36 -04:00
|
|
|
nh = mkDep {
|
2024-05-20 01:17:07 -04:00
|
|
|
owner = "viperML";
|
|
|
|
repo = "nh";
|
|
|
|
};
|
|
|
|
|
2024-05-22 20:17:36 -04:00
|
|
|
nix-melt = mkDep {
|
2024-05-20 01:17:07 -04:00
|
|
|
owner = "nix-community";
|
|
|
|
repo = "nix-melt";
|
|
|
|
};
|
2024-06-11 16:42:47 -04:00
|
|
|
|
|
|
|
mozilla-addons-to-nix = mkDep {
|
|
|
|
type = "sourcehut";
|
|
|
|
owner = "~rycee";
|
|
|
|
repo = "mozilla-addons-to-nix";
|
|
|
|
};
|
2024-05-20 01:17:07 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
overlays = {
|
2024-05-22 20:17:36 -04:00
|
|
|
nixpkgs-wayland = mkDep {
|
2024-05-20 01:17:07 -04:00
|
|
|
owner = "nix-community";
|
|
|
|
repo = "nixpkgs-wayland";
|
|
|
|
};
|
|
|
|
|
2024-05-22 20:17:36 -04:00
|
|
|
nix-gaming = mkDep {
|
2024-05-20 01:17:07 -04:00
|
|
|
owner = "fufexan";
|
|
|
|
repo = "nix-gaming";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
nvimInputs = {
|
2024-05-23 21:22:11 -04:00
|
|
|
neovim-nightly = mkDep {
|
2024-05-20 01:17:07 -04:00
|
|
|
owner = "nix-community";
|
|
|
|
repo = "neovim-nightly-overlay";
|
|
|
|
};
|
|
|
|
|
|
|
|
stylelint-lsp = mkDep {
|
|
|
|
owner = "matt1432";
|
|
|
|
repo = "stylelint-lsp";
|
|
|
|
};
|
|
|
|
|
2024-05-29 21:18:50 -04:00
|
|
|
# uses nixVersions.nix_2_19
|
2024-05-22 20:17:36 -04:00
|
|
|
nixd = mkDep {
|
2024-05-20 01:17:07 -04:00
|
|
|
owner = "nix-community";
|
|
|
|
repo = "nixd";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
clusterInputs = {
|
|
|
|
pcsd = mkDep {
|
|
|
|
owner = "matt1432";
|
|
|
|
repo = "nixos-pcsd";
|
|
|
|
};
|
|
|
|
|
|
|
|
headscale = mkDep {
|
|
|
|
owner = "juanfont";
|
|
|
|
repo = "headscale";
|
|
|
|
};
|
|
|
|
|
|
|
|
caddy-plugins = mkDep {
|
|
|
|
owner = "matt1432";
|
|
|
|
repo = "nixos-caddy-cloudflare";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
serviviInputs = {
|
|
|
|
nms = mkDep {
|
|
|
|
owner = "matt1432";
|
|
|
|
repo = "nixos-minecraft-servers";
|
|
|
|
};
|
|
|
|
|
2024-06-28 17:43:43 -04:00
|
|
|
steam-servers = mkDep {
|
2024-07-01 22:43:18 -04:00
|
|
|
owner = "matt1432";
|
2024-06-28 17:43:43 -04:00
|
|
|
repo = "nix-steam-servers";
|
|
|
|
};
|
|
|
|
|
2024-05-20 01:17:07 -04:00
|
|
|
nix-eval-jobs = mkDep {
|
|
|
|
owner = "nix-community";
|
|
|
|
repo = "nix-eval-jobs";
|
|
|
|
};
|
|
|
|
|
|
|
|
nix-fast-build = mkDep {
|
|
|
|
owner = "Mic92";
|
|
|
|
repo = "nix-fast-build";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
nosInputs = {
|
|
|
|
arion = mkDep {
|
|
|
|
owner = "hercules-ci";
|
|
|
|
repo = "arion";
|
|
|
|
};
|
|
|
|
|
|
|
|
jellyfin-flake = mkDep {
|
|
|
|
owner = "matt1432";
|
|
|
|
repo = "nixos-jellyfin";
|
|
|
|
};
|
|
|
|
|
|
|
|
bazarr-bulk = mkDep {
|
2024-05-20 11:44:00 -04:00
|
|
|
owner = "mateoradman";
|
2024-05-20 01:17:07 -04:00
|
|
|
repo = "bazarr-bulk";
|
|
|
|
};
|
|
|
|
|
|
|
|
subsync = mkDep {
|
|
|
|
owner = "matt1432";
|
|
|
|
repo = "subsync";
|
|
|
|
|
|
|
|
# Keep version that uses Sphinxbase
|
|
|
|
rev = "ee9e1592ae4ec7c694d8857aa72be079d81ea209";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
desktopInputs = {
|
|
|
|
hyprlandInputs = {
|
|
|
|
hyprland = mkDep {
|
|
|
|
type = "git";
|
|
|
|
url = "https://github.com/hyprwm/Hyprland";
|
|
|
|
submodules = true;
|
|
|
|
};
|
|
|
|
|
2024-06-24 11:46:08 -04:00
|
|
|
hyprland-plugins = mkHyprDep {
|
2024-05-20 01:17:07 -04:00
|
|
|
owner = "hyprwm";
|
|
|
|
repo = "hyprland-plugins";
|
2024-06-24 11:46:08 -04:00
|
|
|
|
|
|
|
# type = "path";
|
|
|
|
# path = "/home/matt/git/hyprland-plugins";
|
2024-05-20 01:17:07 -04:00
|
|
|
};
|
|
|
|
|
2024-05-22 20:17:36 -04:00
|
|
|
Hyprspace = mkHyprDep {
|
2024-05-20 01:17:07 -04:00
|
|
|
owner = "KZDKM";
|
|
|
|
repo = "Hyprspace";
|
|
|
|
};
|
|
|
|
|
2024-06-16 14:33:58 -04:00
|
|
|
hyprgrass = mkHyprDep {
|
|
|
|
owner = "horriblename";
|
|
|
|
repo = "hyprgrass";
|
|
|
|
};
|
|
|
|
|
2024-05-20 01:17:07 -04:00
|
|
|
grim-hyprland = mkDep {
|
|
|
|
owner = "eriedaberrie";
|
|
|
|
repo = "grim-hyprland";
|
|
|
|
};
|
|
|
|
|
|
|
|
wpaperd = mkDep {
|
|
|
|
owner = "danyspin97";
|
|
|
|
repo = "wpaperd";
|
2024-06-22 20:37:03 -04:00
|
|
|
|
|
|
|
# FIXME: latest breaks
|
|
|
|
rev = "d4a9cd8b751bed47bf57a93a7ee63054ba43e63b";
|
2024-05-20 01:17:07 -04:00
|
|
|
};
|
2024-07-03 13:24:53 -04:00
|
|
|
|
|
|
|
discord-overlay = mkDep {
|
|
|
|
owner = "matt1432";
|
|
|
|
repo = "discord-nightly-overlay";
|
|
|
|
};
|
2024-05-20 01:17:07 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
agsInputs = {
|
|
|
|
ags = mkDep {
|
|
|
|
owner = "Aylur";
|
|
|
|
repo = "ags";
|
|
|
|
};
|
|
|
|
|
|
|
|
astal = mkDep {
|
|
|
|
owner = "Aylur";
|
|
|
|
repo = "Astal";
|
|
|
|
};
|
|
|
|
|
|
|
|
gtk-session-lock = mkDep {
|
|
|
|
owner = "Cu3PO42";
|
|
|
|
repo = "gtk-session-lock";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
srcs = [
|
|
|
|
# Nvim plugins
|
|
|
|
{
|
|
|
|
name = "vimplugin-easytables-src";
|
|
|
|
owner = "Myzel394";
|
|
|
|
repo = "easytables.nvim";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "vimplugin-ts-error-translator-src";
|
|
|
|
owner = "dmmulroy";
|
|
|
|
repo = "ts-error-translator.nvim";
|
|
|
|
}
|
|
|
|
|
|
|
|
# Overlays & packages
|
|
|
|
{
|
|
|
|
owner = "rushsteve1";
|
|
|
|
repo = "trash-d";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
type = "gitlab";
|
|
|
|
owner = "mishakmak";
|
|
|
|
repo = "pam-fprint-grosshack";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
type = "gitlab";
|
|
|
|
owner = "phoneybadger";
|
|
|
|
repo = "pokemon-colorscripts";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
owner = "Malpiszonekx4";
|
|
|
|
repo = "curseforge-server-downloader";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "gpu-screen-recorder-src";
|
|
|
|
type = "git";
|
|
|
|
url = "https://repo.dec05eba.com/gpu-screen-recorder";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
owner = "libratbag";
|
|
|
|
repo = "libratbag";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
owner = "libratbag";
|
|
|
|
repo = "piper";
|
|
|
|
}
|
|
|
|
|
|
|
|
# MPV scripts
|
|
|
|
{
|
|
|
|
name = "modernx-src";
|
|
|
|
owner = "cyl0";
|
|
|
|
repo = "ModernX";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
owner = "d87";
|
|
|
|
repo = "mpv-persist-properties";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
owner = "christoph-heinrich";
|
|
|
|
repo = "mpv-pointer-event";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
owner = "christoph-heinrich";
|
|
|
|
repo = "mpv-touch-gestures";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "eisa-scripts-src";
|
|
|
|
owner = "Eisa01";
|
|
|
|
repo = "mpv-scripts";
|
|
|
|
}
|
|
|
|
|
|
|
|
## Theme sources
|
|
|
|
{
|
|
|
|
name = "jellyfin-ultrachromic-src";
|
|
|
|
owner = "CTalvio";
|
|
|
|
repo = "Ultrachromic";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "bat-theme-src";
|
|
|
|
owner = "matt1432";
|
|
|
|
repo = "bat";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
owner = "Godiesc";
|
|
|
|
repo = "firefox-gx";
|
2024-06-24 11:46:08 -04:00
|
|
|
ref = "v.9.2";
|
2024-05-20 01:17:07 -04:00
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "git-theme-src";
|
|
|
|
owner = "dracula";
|
|
|
|
repo = "git";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "gtk-theme-src";
|
|
|
|
owner = "dracula";
|
|
|
|
repo = "gtk";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "nvim-theme-src";
|
|
|
|
owner = "Mofiqul";
|
|
|
|
repo = "dracula.nvim";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
owner = "matt1432";
|
|
|
|
repo = "dracula-plymouth";
|
|
|
|
}
|
2024-06-08 23:40:44 -04:00
|
|
|
{
|
|
|
|
name = "sioyek-theme-src";
|
|
|
|
owner = "dracula";
|
|
|
|
repo = "sioyek";
|
|
|
|
}
|
2024-05-20 01:17:07 -04:00
|
|
|
];
|
|
|
|
in {
|
|
|
|
inherit mkDep mkInput mkSrc;
|
|
|
|
|
|
|
|
otherInputs =
|
|
|
|
nixTools
|
|
|
|
// overlays
|
|
|
|
// nvimInputs
|
|
|
|
// clusterInputs
|
|
|
|
// serviviInputs
|
|
|
|
// nosInputs
|
|
|
|
// desktopInputs.hyprlandInputs
|
|
|
|
// desktopInputs.agsInputs
|
|
|
|
// (listToAttrs (map (x: {
|
|
|
|
name = x.name or "${x.repo}-src";
|
|
|
|
value = mkSrc (removeAttrs x ["name"]);
|
|
|
|
})
|
|
|
|
srcs));
|
|
|
|
}
|