mirror of
https://codeberg.org/icewind/ptouch-api.git
synced 2026-06-03 10:54:07 +02:00
45 lines
1.1 KiB
Nix
45 lines
1.1 KiB
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "nixpkgs/nixos-25.11";
|
|
flakelight = {
|
|
url = "github:nix-community/flakelight";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
mill-scale = {
|
|
url = "git+https://codeberg.org/icewind/mill-scale.git";
|
|
inputs.flakelight.follows = "flakelight";
|
|
};
|
|
};
|
|
outputs = {mill-scale, ...}:
|
|
mill-scale ./. {
|
|
withOverlays = [(import ./nix/overlay.nix)];
|
|
extraPaths = [
|
|
./51-ptouch-remote.rules
|
|
./web
|
|
];
|
|
|
|
packages = rec {
|
|
ptouch-remote = pkgs: pkgs.ptouch-remote;
|
|
};
|
|
|
|
crossTargets = [
|
|
"x86_64-unknown-linux-musl"
|
|
"aarch64-unknown-linux-musl"
|
|
];
|
|
|
|
nixosModules = {outputs, ...}: {
|
|
default = {
|
|
pkgs,
|
|
config,
|
|
lib,
|
|
...
|
|
}: {
|
|
imports = [./nix/module.nix];
|
|
config = lib.mkIf config.services.ptouch-remote.enable {
|
|
nixpkgs.overlays = [outputs.overlays.default];
|
|
services.ptouch-remote.package = lib.mkDefault pkgs.ptouch-remote;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|