nix-configs/schrottserver/microbin.nix

25 lines
886 B
Nix
Raw Normal View History

2023-02-16 11:11:05 +00:00
{ inputs, config, pkgs, ... }:
2023-02-17 23:21:51 +00:00
{
environment.systemPackages = [ inputs.microbin-fork.defaultPackage."x86_64-linux" ];
2023-02-16 11:11:05 +00:00
systemd.services.microbin = {
after = [ "network.target" ];
wantedBy = [ "multi-user.target" ];
environment = {
2023-02-17 23:21:51 +00:00
#MICROBIN_AUTH_USERNAME = "jade";
2023-02-16 11:11:05 +00:00
MICROBIN_HASH_IDS = "";
MICROBIN_EDITABLE = "";
MICROBIN_PRIVATE = "";
MICROBIN_HIGHLIGHTSYNTAX = "";
MICROBIN_PUBLIC_PATH = "https://s10e.de";
MICROBIN_QR = "";
};
2023-02-17 23:21:51 +00:00
script = "${inputs.microbin-fork.defaultPackage."x86_64-linux"}/bin/microbin";
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="/";
WorkingDirectory = "/microbin";
};
};
}