feat: isolate deploy module
This commit is contained in:
parent
bb141b7a71
commit
6becf62164
3 changed files with 29 additions and 19 deletions
10
modules/nixos/common/deployrs.nix
Normal file
10
modules/nixos/common/deployrs.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{ lib, config, ... }:
|
||||
{
|
||||
options.deploy = {
|
||||
enable = lib.mkEnableOption "enable deployrs module";
|
||||
address = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = config.networking.hostName;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -1,9 +1,6 @@
|
|||
{ lib, config, ... }:
|
||||
{
|
||||
options.deploy.address = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = config.networking.hostName;
|
||||
};
|
||||
|
||||
config = {
|
||||
services.openssh.enable = true;
|
||||
security = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue