nix-packages/flake.nix
imnyang 8ec0ec33cc
Some checks failed
CI / check (push) Has been cancelled
CI / list-packages (push) Has been cancelled
pkgs/figma-linux: add Figma Desktop package
2026-09-10 02:05:04 +09:00

59 lines
1.5 KiB
Nix

{
description = "imnyang's nix packages";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
};
outputs = { self, nixpkgs }:
let
supportedSystems = [
"x86_64-linux"
"aarch64-darwin"
"x86_64-darwin"
];
overlay = final: prev: {
waterfox-bin = final.callPackage ./pkgs/waterfox-bin/default.nix { };
xcursor-mizuki = final.callPackage ./pkgs/xcursor-mizuki/default.nix { };
pjsk-cursor = final.callPackage ./pkgs/pjsk-cursor/default.nix { };
helium = final.callPackage ./pkgs/helium/default.nix { };
figma-linux = final.callPackage ./pkgs/figma-linux/default.nix { };
};
forAllSystems = f: nixpkgs.lib.genAttrs supportedSystems (system: f (
import nixpkgs {
inherit system;
overlays = [ overlay ];
config.allowUnfree = true;
}
));
in {
overlays.default = overlay;
packages = forAllSystems (pkgs:
let
allPkgs = {
inherit (pkgs)
waterfox-bin
xcursor-mizuki
pjsk-cursor
helium
figma-linux;
};
in
nixpkgs.lib.filterAttrs (name: pkg:
nixpkgs.lib.elem pkgs.stdenv.hostPlatform.system (pkg.meta.platforms or [ "x86_64-linux" ])
) allPkgs
);
nixConfig = {
extra-substituters = [
"https://cache.mizuki.guru/public"
];
extra-trusted-public-keys = [
"cache.mizuki.guru:IgipakDD/clr0XbuaIejPYMT5UkTVGKVTxtWXcsbiAg="
];
};
};
}