forked from Fediversity/Fediversity
add deployment method: ssh
This commit is contained in:
parent
27c59e1af8
commit
32e04beb06
1 changed files with 15 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
|||
inputs,
|
||||
# sources,
|
||||
lib,
|
||||
# providers,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
|
||||
|
@ -28,7 +28,20 @@ let
|
|||
{
|
||||
implementation = requests: {
|
||||
input = requests;
|
||||
output = { };
|
||||
output.ssh-host = {
|
||||
ssh = {
|
||||
host = "localhost";
|
||||
username = "root";
|
||||
authentication.password = "password";
|
||||
};
|
||||
nixos-configuration =
|
||||
{ ... }:
|
||||
{
|
||||
users.users = config.resources.shell.login-shell.apply (
|
||||
lib.filterAttrs (_name: value: value ? login-shell) requests
|
||||
);
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue