mirror of
https://codeberg.org/icewind/ptouch-api.git
synced 2026-06-03 10:54:07 +02:00
initial version
This commit is contained in:
parent
ddc5849ed6
commit
e37160b717
11 changed files with 2800 additions and 3 deletions
24
flake.nix
24
flake.nix
|
|
@ -11,5 +11,27 @@
|
|||
};
|
||||
};
|
||||
outputs = {mill-scale, ...}:
|
||||
mill-scale ./. {};
|
||||
mill-scale ./. {
|
||||
withOverlays = [(import ./nix/overlay.nix)];
|
||||
extraPaths = [./51-ptouch-api.rules];
|
||||
|
||||
packages = rec {
|
||||
ptouch-api = pkgs: pkgs.ptouch-api;
|
||||
};
|
||||
|
||||
nixosModules = {outputs, ...}: {
|
||||
default = {
|
||||
pkgs,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
imports = [./nix/module.nix];
|
||||
config = lib.mkIf config.services.ptouch-api.enable {
|
||||
nixpkgs.overlays = [outputs.overlays.default];
|
||||
services.ptouch-api.package = lib.mkDefault pkgs.ptouch-api;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue