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"; + }; + }; +}