nixos-config/profiles/overlay.nix

93 lines
3.7 KiB
Nix
Raw Normal View History

2020-08-04 01:46:48 +04:00
{ pkgs, config, lib, inputs, ... }:
2020-09-08 03:07:50 +04:00
let
2022-12-14 23:51:59 +03:00
inherit (pkgs.hostPlatform) system;
2023-01-26 02:12:00 +03:00
master = import inputs.nixpkgs-master {
2021-04-02 21:50:33 +03:00
config = config.nixpkgs.config;
localSystem = { inherit system; };
2023-01-26 02:12:00 +03:00
};
2023-06-23 18:27:46 +03:00
stable = import inputs.nixpkgs-stable {
config = config.nixpkgs.config;
localSystem = { inherit system; };
};
2020-09-08 03:07:50 +04:00
in
2021-10-26 17:10:21 +03:00
with lib; {
2019-08-27 23:41:02 +04:00
nixpkgs.overlays = [
2024-02-01 22:47:27 +03:00
inputs.ataraxiasjel-nur.overlays.default
2024-06-27 20:17:44 +03:00
inputs.ataraxiasjel-nur.overlays.grub2-unstable-argon2
2023-06-23 18:27:46 +03:00
inputs.deploy-rs.overlay
2022-12-07 22:05:00 +03:00
(final: prev:
{
2024-09-14 12:31:38 +03:00
attic-client = inputs.attic.packages.${system}.attic;
attic-server = inputs.attic.packages.${system}.attic-server;
2023-06-16 00:46:19 +03:00
cassowary-py = inputs.cassowary.packages.${system}.cassowary;
2024-11-12 01:00:40 +03:00
heroic = (prev.heroic.override { extraPkgs = pkgs: [ final.umu-launcher ]; });
2023-05-24 21:30:50 +03:00
nix-alien = inputs.nix-alien.packages.${system}.nix-alien;
2023-10-13 19:52:54 +03:00
nix-fast-build = inputs.nix-fast-build.packages.${system}.default;
2023-05-24 21:30:50 +03:00
nix-index-update = inputs.nix-alien.packages.${system}.nix-index-update;
2024-06-17 19:50:34 +03:00
prismlauncher = inputs.prismlauncher.packages.${system}.prismlauncher.override {
jdks = [ pkgs.temurin-bin ];
};
2023-10-01 23:44:08 +03:00
xray = master.xray;
2023-04-15 03:20:45 +03:00
youtube-to-mpv = prev.callPackage ./packages/youtube-to-mpv.nix { term = config.defaultApplications.term.cmd; };
2024-07-16 15:18:47 +03:00
yt-archivist = prev.callPackage ./packages/yt-archivist { };
2023-05-24 21:30:50 +03:00
yt-dlp = master.yt-dlp;
sing-box = master.sing-box;
2023-10-13 19:51:59 +03:00
steam = prev.steam.override {
2022-12-07 22:05:00 +03:00
extraPkgs = pkgs: with pkgs; [ mono libkrb5 keyutils ];
};
2024-09-19 23:56:24 +03:00
umu-launcher = inputs.umu.packages.${system}.umu;
2024-06-27 20:18:12 +03:00
wine = prev.wineWow64Packages.stagingFull;
2023-11-11 03:16:39 +03:00
intel-vaapi-driver = prev.intel-vaapi-driver.override { enableHybridCodec = true; };
2022-08-18 18:00:14 +03:00
2024-07-16 15:11:58 +03:00
modprobed-db = prev.modprobed-db.overrideAttrs (oa: {
postPatch = (oa.postPatch or "") + ''
substituteInPlace ./common/modprobed-db.in \
--replace-fail "/modprobed-db.conf" "/modprobed-db/modprobed-db.conf"
substituteInPlace ./common/modprobed-db.skel \
--replace-fail "/.config" "/.config/modprobed-db"
'';
});
2025-02-12 22:00:57 +03:00
hyprland = prev.hyprland.overrideAttrs (oa: {
patches = (oa.patches or []) ++ [
../patches/hyprland-tablet.patch
];
});
2023-09-16 00:52:52 +03:00
neatvnc = prev.neatvnc.overrideAttrs (oa: {
patches = [ ../patches/neatvnc.patch ] ++ oa.patches or [ ];
});
2024-07-17 12:57:12 +03:00
nix-direnv = inputs.nix-direnv.packages.${system}.default.override { nix = final.nix; };
2022-12-07 22:05:00 +03:00
pass-secret-service = prev.pass-secret-service.overrideAttrs (_: {
2022-11-21 02:53:20 +03:00
installCheckPhase = null;
postInstall = ''
mkdir -p $out/share/{dbus-1/services,xdg-desktop-portal/portals}
cat > $out/share/dbus-1/services/org.freedesktop.secrets.service << EOF
[D-BUS Service]
Name=org.freedesktop.secrets
Exec=/run/current-system/sw/bin/systemctl --user start pass-secret-service
EOF
cp $out/share/dbus-1/services/{org.freedesktop.secrets.service,org.freedesktop.impl.portal.Secret.service}
cat > $out/share/xdg-desktop-portal/portals/pass-secret-service.portal << EOF
[portal]
DBusName=org.freedesktop.secrets
Interfaces=org.freedesktop.impl.portal.Secrets
UseIn=gnome
EOF
'';
});
2022-12-10 02:23:25 +03:00
2023-01-13 04:03:15 +03:00
narodmon-py = prev.writers.writePython3Bin "temp.py" {
libraries = with prev.python3Packages; [ requests ];
2022-12-07 02:27:22 +03:00
} ./packages/narodmon-py.nix;
2023-03-23 01:58:10 +03:00
yandex-taxi-py = prev.writers.writePython3 "yandex-taxi.py" {
libraries = with prev.python3Packages; [ requests ];
} ./packages/yandex-taxi-py.nix;
2020-02-05 04:30:49 +04:00
}
)
2019-08-27 23:41:02 +04:00
];
2020-02-15 03:15:10 +04:00
}