2024-05-30 16:54:58 -03:00
|
|
|
{ inputs, packages, ... }:
|
|
|
|
rec {
|
2023-01-23 20:56:18 -03:00
|
|
|
all = [
|
|
|
|
scripts
|
2024-09-25 22:24:46 -03:00
|
|
|
unstable
|
2023-01-23 20:56:18 -03:00
|
|
|
themes
|
|
|
|
new-packages
|
|
|
|
patches
|
2023-02-25 18:04:58 -03:00
|
|
|
lib_extended
|
2023-02-24 11:59:17 -03:00
|
|
|
disko
|
2023-01-22 18:12:04 -03:00
|
|
|
];
|
2023-01-23 20:56:18 -03:00
|
|
|
|
|
|
|
scripts = (import ../scripts);
|
|
|
|
|
2024-09-25 22:24:46 -03:00
|
|
|
unstable = final: prev: {
|
|
|
|
unstable = import inputs.nixpkgs-unstable { inherit (final) system config; };
|
|
|
|
};
|
|
|
|
|
2024-05-30 16:54:58 -03:00
|
|
|
themes = (
|
|
|
|
final: prev: {
|
|
|
|
papirus_red = (final.papirus-icon-theme.override { color = "red"; });
|
|
|
|
orchis_theme_compact = (
|
|
|
|
final.orchis-theme.override {
|
|
|
|
border-radius = 0;
|
|
|
|
tweaks = [
|
|
|
|
"compact"
|
|
|
|
"solid"
|
|
|
|
];
|
|
|
|
}
|
|
|
|
);
|
|
|
|
nerdfonts_fira_hack = (
|
|
|
|
final.nerdfonts.override {
|
|
|
|
fonts = [
|
|
|
|
"FiraCode"
|
|
|
|
"Hack"
|
|
|
|
];
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|
|
|
|
);
|
2023-01-23 20:56:18 -03:00
|
|
|
|
2024-05-30 16:54:58 -03:00
|
|
|
new-packages = (
|
|
|
|
final: prev:
|
|
|
|
packages
|
|
|
|
// {
|
|
|
|
dhist = inputs.dhist.packages.${prev.system}.dhist;
|
|
|
|
demoji = inputs.demoji.packages.${prev.system}.default;
|
|
|
|
tlauncher = inputs.tlauncher.packages.${prev.system}.tlauncher;
|
|
|
|
wl-crosshair = inputs.wl-crosshair.packages.${prev.system}.default;
|
|
|
|
}
|
|
|
|
);
|
2023-01-23 20:56:18 -03:00
|
|
|
|
2024-05-30 16:54:58 -03:00
|
|
|
patches = (
|
|
|
|
final: prev: {
|
|
|
|
mySway = prev.sway.override {
|
2024-06-21 00:30:44 -03:00
|
|
|
withBaseWrapper = true;
|
|
|
|
withGtkWrapper = true;
|
2024-05-30 16:54:58 -03:00
|
|
|
sway-unwrapped = prev.sway-unwrapped.overrideAttrs (old: {
|
|
|
|
patches = old.patches ++ [ ../patches/sway/fix-hide_cursor-clearing-focus.patch ];
|
|
|
|
});
|
|
|
|
};
|
|
|
|
}
|
|
|
|
);
|
2023-01-23 20:56:18 -03:00
|
|
|
|
2024-05-30 16:54:58 -03:00
|
|
|
lib_extended = (
|
|
|
|
final: prev: {
|
|
|
|
lib = prev.lib // rec {
|
|
|
|
# Utility function
|
|
|
|
# Input: [{v1=1;} {v2=2;}]
|
|
|
|
# Output: {v1=1;v2=2;}
|
|
|
|
mergeAttrsSet = prev.lib.foldAttrs (n: _: n) { };
|
2023-02-25 18:04:58 -03:00
|
|
|
|
2024-05-30 16:54:58 -03:00
|
|
|
# Easily translate imperative templating code
|
|
|
|
# Input: [ 1 2 ] (num: { "v${num}" = num; })
|
|
|
|
# Output: {v1=1;v2=2;}
|
|
|
|
forEachMerge = list: func: mergeAttrsSet (prev.lib.forEach list func);
|
|
|
|
};
|
|
|
|
}
|
|
|
|
);
|
2023-02-24 11:59:17 -03:00
|
|
|
|
|
|
|
disko = final: prev: {
|
|
|
|
makeDiskoTest =
|
|
|
|
let
|
|
|
|
makeTest = import (prev.path + "/nixos/tests/make-test-python.nix");
|
|
|
|
eval-config = import (prev.path + "/nixos/lib/eval-config.nix");
|
|
|
|
in
|
|
|
|
(prev.callPackage "${inputs.disko}/tests/lib.nix" { inherit makeTest eval-config; }).makeDiskoTest;
|
|
|
|
};
|
2023-01-29 13:50:23 -03:00
|
|
|
}
|