nix-configs/schrottserver/microbin.nix

28 lines
937 B
Nix
Raw Normal View History

2023-02-16 12:11:05 +01:00
{ inputs, config, pkgs, ... }:
2023-02-18 00:21:51 +01:00
{
2023-03-06 20:00:42 +01:00
environment.systemPackages = [ inputs.karton.defaultPackage."x86_64-linux" ];
systemd.services.karton = {
2023-02-16 12:11:05 +01:00
after = [ "network.target" ];
wantedBy = [ "multi-user.target" ];
environment = {
2023-02-18 00:21:51 +01:00
#MICROBIN_AUTH_USERNAME = "jade";
2023-03-06 20:00:42 +01: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 12:11:05 +01:00
};
2023-03-06 20:00:42 +01:00
script = "${inputs.karton.defaultPackage."x86_64-linux"}/bin/karton";
2023-02-16 12:11:05 +01: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 20:00:42 +01:00
WorkingDirectory = "/karton";
2023-02-16 12:11:05 +01:00
};
};
}