Nixos-Configuration/modules/nixos/common/deployrs.nix
Jermeiah S f108181be1
All checks were successful
/ check (push) Successful in 1m2s
/ deploy (push) Has been skipped
chore: improve naming for host file
2025-06-23 12:50:35 -04:00

15 lines
336 B
Nix

{ lib, config, ... }:
let
hosts = builtins.fromJSON (builtins.readFile ../../../hosts.json);
in
{
options.deploy = {
enable = lib.mkEnableOption "enable deployrs module" // {
default = true;
};
address = lib.mkOption {
type = lib.types.str;
default = hosts.${config.networking.hostName};
};
};
}