2023-02-16 11:11:05 +00:00
|
|
|
{ inputs, config, pkgs, ... }:
|
2023-02-17 23:21:51 +00:00
|
|
|
{
|
2023-03-06 19:00:42 +00:00
|
|
|
environment.systemPackages = [ inputs.karton.defaultPackage."x86_64-linux" ];
|
|
|
|
systemd.services.karton = {
|
2023-02-16 11:11:05 +00:00
|
|
|
after = [ "network.target" ];
|
|
|
|
wantedBy = [ "multi-user.target" ];
|
|
|
|
environment = {
|
2023-02-17 23:21:51 +00:00
|
|
|
#MICROBIN_AUTH_USERNAME = "jade";
|
2023-03-06 19:00:42 +00:00
|
|
|
KARTON_HASH_IDS = "";
|
|
|
|
KARTON_EDITABLE = "";
|
|
|
|
KARTON_PRIVATE = "";
|
|
|
|
KARTON_HIGHLIGHTSYNTAX = "";
|
|
|
|
KARTON_PUBLIC_PATH = "https://s10e.de";
|
|
|
|
KARTON_QR = "";
|
|
|
|
KARTON_URL_EP = "u";
|
|
|
|
KARTON_RAW_EP = "r";
|
|
|
|
KARTON_PASTA_EP = "p";
|
2023-02-16 11:11:05 +00:00
|
|
|
};
|
2023-03-06 19:00:42 +00:00
|
|
|
script = "${inputs.karton.defaultPackage."x86_64-linux"}/bin/karton";
|
2023-02-16 11:11:05 +00:00
|
|
|
#scriptArgs = "--auth-password ${builtins.readFile ../secret-data/mb-pass} --auth-username jade --editable --hash-ids --no-listing --highlightsyntax --public-path https://s10e.de --qr";
|
|
|
|
serviceConfig = {
|
|
|
|
Type = "simple";
|
|
|
|
RootDirectory="/";
|
2023-03-06 19:00:42 +00:00
|
|
|
WorkingDirectory = "/karton";
|
2023-02-16 11:11:05 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|