2024-03-14 11:46:04 +00:00
|
|
|
{inputs, ...}: {
|
2023-11-03 07:25:58 +00:00
|
|
|
systems = ["x86_64-linux"];
|
|
|
|
|
|
|
|
imports = [inputs.flake-parts.flakeModules.easyOverlay];
|
|
|
|
|
|
|
|
perSystem = {
|
|
|
|
config,
|
|
|
|
system,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
_module.args.pkgs = import inputs.nixpkgs {
|
|
|
|
inherit system;
|
|
|
|
config.allowUnfree = true;
|
|
|
|
};
|
|
|
|
|
2023-11-03 09:27:04 +00:00
|
|
|
packages = let
|
2024-03-14 11:46:04 +00:00
|
|
|
inherit (pkgs) callPackage fetchFromGitea foot alejandra;
|
2023-11-03 09:27:04 +00:00
|
|
|
pins = import ../npins;
|
2024-03-14 11:46:04 +00:00
|
|
|
|
2023-11-07 12:59:37 +00:00
|
|
|
mkPackage = path: {__functor = self: self.override;} // (callPackage path {inherit pins;});
|
2023-11-03 09:27:04 +00:00
|
|
|
in {
|
2024-03-14 11:46:04 +00:00
|
|
|
/*
|
|
|
|
packages that follow npins entries
|
|
|
|
they can be updated via npins
|
|
|
|
*/
|
2023-11-03 09:27:04 +00:00
|
|
|
ani-cli = mkPackage ./ani-cli;
|
|
|
|
rat = mkPackage ./rat;
|
2023-11-03 15:58:45 +00:00
|
|
|
rofi-calc-wayland = mkPackage ./rofi-calc-wayland;
|
|
|
|
rofi-emoji-wayland = mkPackage ./rofi-emoji-wayland;
|
2023-11-03 09:27:04 +00:00
|
|
|
|
2024-03-14 11:46:04 +00:00
|
|
|
/*
|
|
|
|
static packages
|
|
|
|
need manual intervention with each update
|
|
|
|
*/
|
|
|
|
mov-cli = callPackage ./mov-cli {};
|
2023-11-07 12:59:37 +00:00
|
|
|
cloneit = callPackage ./cloneit {};
|
2023-11-11 17:36:11 +00:00
|
|
|
headscale-ui = callPackage ./headscale-ui {};
|
2023-11-12 14:42:38 +00:00
|
|
|
mastodon-bird-ui = callPackage ./mastodon-bird-ui {};
|
2024-01-18 09:43:10 +00:00
|
|
|
reposilite-bin = callPackage ./reposilite-bin {
|
2024-03-14 11:46:04 +00:00
|
|
|
javaJdk = pkgs.openjdk_headless;
|
2024-01-18 09:43:10 +00:00
|
|
|
};
|
2023-11-03 07:25:58 +00:00
|
|
|
|
2024-03-14 11:46:04 +00:00
|
|
|
/*
|
|
|
|
patched packages
|
|
|
|
patches packages take a package from nixpkgs and patch it to suit my own needs
|
|
|
|
*/
|
2024-03-14 07:18:38 +00:00
|
|
|
foot-transparent = foot.overrideAttrs (prev: let
|
|
|
|
version = "2024-03-14-unstable";
|
|
|
|
in {
|
|
|
|
inherit version;
|
|
|
|
src = fetchFromGitea {
|
|
|
|
domain = "codeberg.org";
|
|
|
|
owner = "dnkl";
|
|
|
|
repo = "foot";
|
|
|
|
rev = "dd3bb13d97b405495465357f7b7b17c9f2bba3c2";
|
|
|
|
hash = "sha256-Pp3/cNELRYmTOQrJgHX6c+t0QkxEjoly0TLMKVj3H0E=";
|
|
|
|
};
|
|
|
|
|
2023-11-24 07:59:41 +00:00
|
|
|
patches = (prev.patches or []) ++ [../patches/0001-foot-transparent.patch];
|
2024-03-14 11:46:04 +00:00
|
|
|
mesonFlags = (prev.mesonFlags or []) ++ ["-Dfullscreen_alpha=true"];
|
|
|
|
|
|
|
|
meta.mainProgram = "foot";
|
2024-02-25 16:21:46 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
alejandra-no-ads = alejandra.overrideAttrs (prev: {
|
|
|
|
patches = (prev.patches or []) ++ [../patches/0003-alejandra-remove-ads.patch];
|
2023-11-03 07:25:58 +00:00
|
|
|
});
|
2024-03-14 07:18:38 +00:00
|
|
|
|
|
|
|
# override gnome-control-center to trick it into thinking we're running gnome
|
2024-03-14 11:46:04 +00:00
|
|
|
# <https://github.com/NixOS/nixpkgs/issues/230493>
|
|
|
|
# <https://gitlab.gnome.org/GNOME/gnome-control-center/-/merge_requests/736>
|
2024-03-14 07:18:38 +00:00
|
|
|
gccn-wrapped = pkgs.gnome.gnome-control-center.overrideAttrs (prev: {
|
|
|
|
# gnome-control-center does not start without XDG_CURRENT_DESKTOP=gnome
|
|
|
|
preFixup =
|
|
|
|
''
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
--set XDG_CURRENT_DESKTOP "gnome"
|
|
|
|
);
|
|
|
|
''
|
|
|
|
+ prev.preFixup;
|
|
|
|
});
|
2023-11-03 07:25:58 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|