[nixos] Add distinct scanberry module

This commit is contained in:
Sebastian Schulze 2023-06-01 17:00:23 +02:00
parent 43ff2173d9
commit b75dcd263d
1 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,17 @@
{ lib, pkgs, config, ... }:
with lib;
let
cfg = config.services.scanberry;
in
{
options.services.scanberry = {
enable = mkEnableOption "scanberry service";
};
config = mkIf cfg.enable {
systemd.user.services.scanberry = {
wantedBy = [ "multi-user.target" ];
serviceConfig.ExecStart = "/home/bascht/Code/scanberry/scanberry";
};
};
}