[nixos] Add distinct scanberry module
This commit is contained in:
parent
43ff2173d9
commit
b75dcd263d
|
@ -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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue