mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-06-11 17:12:43 +02:00
af0ef6d154
Flake lock file updates:
• Updated input 'nixpkgs-patched':
'github:ryan4yin/nixpkgs/d373b16187b32770d99f6ff54a133d9543e68702?narHash=sha256-75W3YfzkkKvpE3/wtHMihlT9kOnQZxWpLoshw1xu0T8%3D' (2026-03-20)
→ 'github:ryan4yin/nixpkgs/4425024452e93ce3d10e11bcd9b47f1dfa78593b?narHash=sha256-pu3loLm4gvcbh8iibeYDGgPHOVFXb8sAKEzJ9AxX5L4%3D' (2026-06-03)
fix: qq
32 lines
705 B
Nix
32 lines
705 B
Nix
{
|
|
pkgs,
|
|
pkgs-patched,
|
|
nixpak,
|
|
...
|
|
}:
|
|
let
|
|
callArgs = {
|
|
mkNixPak = nixpak.lib.nixpak {
|
|
inherit (pkgs) lib;
|
|
inherit pkgs;
|
|
};
|
|
safeBind = sloth: realdir: mapdir: [
|
|
(sloth.mkdir (sloth.concat' sloth.appDataDir realdir))
|
|
(sloth.concat' sloth.homeDir mapdir)
|
|
];
|
|
};
|
|
wrapper = _pkgs: path: (_pkgs.callPackage path callArgs);
|
|
in
|
|
{
|
|
# Add nixpaked Apps into nixpkgs, and reference them in home-manager or other nixos modules
|
|
nixpkgs.overlays = [
|
|
(_: super: {
|
|
nixpaks = {
|
|
qq = wrapper pkgs-patched ./qq.nix;
|
|
telegram-desktop = wrapper super ./telegram-desktop.nix;
|
|
firefox = wrapper super ./firefox.nix;
|
|
};
|
|
})
|
|
];
|
|
}
|