refactor(repo): change a bunch of everything
This commit is contained in:
parent
81f367e3aa
commit
81bee82c34
26 changed files with 352 additions and 127 deletions
69
flake.nix
69
flake.nix
|
@ -5,7 +5,7 @@
|
|||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
};
|
||||
|
||||
outputs = {
|
||||
outputs = inputs @ {
|
||||
self,
|
||||
nixpkgs,
|
||||
}: let
|
||||
|
@ -14,49 +14,32 @@
|
|||
f {
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
});
|
||||
in {
|
||||
overlays.default = final: prev: let
|
||||
packages = {
|
||||
amadaluzian-neovide = prev.callPackage ./amadaluzian-neovide {};
|
||||
amadaluzian-starship = prev.callPackage ./amadaluzian-starship {};
|
||||
amadaluzian-xonsh = prev.callPackage ./amadaluzian-xonsh {inherit (packages) amadaluzian-starship;};
|
||||
amadaluzian-nu = prev.callPackage ./amadaluzian-nu {inherit (packages) amadaluzian-starship;};
|
||||
fairfax = prev.callPackage ./fairfax {};
|
||||
river-bedload = prev.callPackage ./river-bedload {};
|
||||
tela-circle-icon-theme = prev.callPackage ./tela-circle-icon-theme-patched {};
|
||||
nicotine-plus-libadwaita = prev.symlinkJoin {
|
||||
name = "nicotine";
|
||||
paths = [prev.nicotine-plus];
|
||||
nativeBuildInputs = [prev.makeWrapper];
|
||||
postBuild = ''
|
||||
wrapProgram $out/bin/nicotine \
|
||||
--set-default NICOTINE_LIBADWAITA 1
|
||||
'';
|
||||
};
|
||||
colloid-icon-theme-git = prev.colloid-icon-theme.overrideAttrs (_finalAttrs: {
|
||||
version = "master";
|
||||
src = prev.fetchFromGitHub {
|
||||
owner = "vinceliuice";
|
||||
repo = "Colloid-icon-theme";
|
||||
rev = "main";
|
||||
hash = "sha256-x2SSaIkKm1415avO7R6TPkpghM30HmMdjMFUUyPWZsk=";
|
||||
};
|
||||
});
|
||||
rose-pine-gtk-theme-git = prev.rose-pine-gtk-theme.overrideAttrs (_finalAttrs: {
|
||||
version = "master";
|
||||
src = prev.fetchFromGitHub {
|
||||
owner = "rose-pine";
|
||||
repo = "gtk";
|
||||
tag = "master";
|
||||
hash = "sha256-vCWs+TOVURl18EdbJr5QAHfB+JX9lYJ3TPO6IklKeFE=";
|
||||
};
|
||||
});
|
||||
vesktop-electron32 = prev.vesktop.override {
|
||||
electron = prev.electron_32;
|
||||
};
|
||||
};
|
||||
filterAttrs = f: attrs: let
|
||||
names = builtins.attrNames attrs;
|
||||
filtered = builtins.filter (n: f n attrs.${n}) names;
|
||||
in
|
||||
packages;
|
||||
builtins.listToAttrs (
|
||||
map (
|
||||
name: {
|
||||
inherit name;
|
||||
value = attrs.${name};
|
||||
}
|
||||
)
|
||||
filtered
|
||||
);
|
||||
in {
|
||||
overlays.default = _: prev: (builtins.listToAttrs (
|
||||
builtins.map (
|
||||
name: {
|
||||
inherit name;
|
||||
value = prev.callPackage ./packages/${name} {inherit inputs;};
|
||||
}
|
||||
) (builtins.attrNames (
|
||||
filterAttrs (
|
||||
_: v: v == "directory"
|
||||
) (builtins.readDir ./packages)
|
||||
))
|
||||
));
|
||||
|
||||
packages = eachSystem ({pkgs}: self.overlays.default pkgs pkgs);
|
||||
formatter = eachSystem ({pkgs}: pkgs.alejandra);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue