mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
Add zipline
This commit is contained in:
parent
db188aebd7
commit
e48d51cbc0
7 changed files with 86 additions and 54 deletions
|
|
@ -14,5 +14,6 @@
|
|||
./nginx.nix
|
||||
./frontends.nix
|
||||
./homebox.nix
|
||||
./share.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
30
modules/nixos/server/share.nix
Normal file
30
modules/nixos/server/share.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{ pkgs, lib, config, ... }:
|
||||
let
|
||||
cfg = config.mods.server.share;
|
||||
port = config.mods.server.nginx.ports.share;
|
||||
in with lib; {
|
||||
options.mods.server = {
|
||||
share = {
|
||||
enable = mkEnableOption {
|
||||
default = false;
|
||||
description = "enables zipline server";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
users.groups.zipline = { };
|
||||
users.users.zipline = {
|
||||
isSystemUser = true;
|
||||
group = "zipline";
|
||||
};
|
||||
services.zipline = {
|
||||
enable = true;
|
||||
settings = {
|
||||
CORE_HOST = "0.0.0.0";
|
||||
CORE_PORT = port;
|
||||
};
|
||||
environmentFiles = [ "/run/secrets/zipline-secret" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue