faucet(asusd): add asusd service

This commit is contained in:
514fpv 2024-01-05 22:24:35 +08:00
parent fd85e1da62
commit 6d7360a75e
Signed by: koishi
SSH key fingerprint: SHA256:VkIdW3jUIiqecV2WNAje2fGU5lEhN0XZ58DN0NS4pv0

18
faucet/asusd/default.nix Normal file
View file

@ -0,0 +1,18 @@
{ pkgs
, lib
, config
, ... }: with lib; let
cfg = config.faucet.asusd;
in {
options.faucet.asusd = {
enable = mkEnableOption "ASUS laptop userland support daemon";
};
config = mkIf cfg.enable {
services.asusd.enable = true;
environment.persistence."/nix/persist/fhs".directories = [
"/etc/asusd"
];
};
}