From b75dcd263d52bbdd8600af1542dcba6f102d2187 Mon Sep 17 00:00:00 2001 From: Sebastian Schulze Date: Thu, 1 Jun 2023 17:00:23 +0200 Subject: [PATCH] [nixos] Add distinct scanberry module --- dot_config/nixos/scanberry.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 dot_config/nixos/scanberry.nix diff --git a/dot_config/nixos/scanberry.nix b/dot_config/nixos/scanberry.nix new file mode 100644 index 0000000..eb4c383 --- /dev/null +++ b/dot_config/nixos/scanberry.nix @@ -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"; + }; + }; +}