copyparty/flake.nix
Tom van Dijk 7256189243
nix: set formatter in flake for nix files
This allows contributors to format their nix changes with the `nix fmt`
command.
2025-07-28 13:28:15 +02:00

42 lines
894 B
Nix

{
inputs = {
nixpkgs.url = "nixpkgs/nixos-25.05";
flake-utils.url = "github:numtide/flake-utils";
};
outputs =
{
self,
nixpkgs,
flake-utils,
}:
{
nixosModules.default = ./contrib/nixos/modules/copyparty.nix;
overlays.default = self: super: {
copyparty = self.python3.pkgs.callPackage ./contrib/package/nix/copyparty {
ffmpeg = self.ffmpeg-full;
};
};
}
// flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs {
inherit system;
config = {
allowAliases = false;
};
overlays = [ self.overlays.default ];
};
in
{
packages = {
inherit (pkgs) copyparty;
default = self.packages.${system}.copyparty;
};
formatter = pkgs.nixfmt-tree;
}
);
}