mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-03-28 14:50:55 +01:00
22 lines
506 B
Nix
22 lines
506 B
Nix
{ lib, config, ... }:
|
|
with lib;
|
|
let
|
|
cfg = config.luj.deployment;
|
|
hostname = config.networking.hostName;
|
|
in
|
|
{
|
|
|
|
options.luj.deployment.enable = mkEnableOption "activate deployment on machine";
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
deployment = {
|
|
targetHost = lib.mkDefault "${hostname}.${config.machine.meta.tld}";
|
|
targetPort = lib.mkDefault 45;
|
|
targetUser = lib.mkDefault "root";
|
|
allowLocalDeployment = lib.mkDefault true;
|
|
buildOnTarget = lib.mkDefault true;
|
|
};
|
|
|
|
};
|
|
}
|