refactor: merge 'host.nix' into 'meta.nix'
This commit is contained in:
@@ -7,16 +7,19 @@
|
||||
|
||||
# also see <https://wiki.nixos.org/wiki/Install_NixOS_on_Hetzner_Cloud>
|
||||
|
||||
let
|
||||
meta = import ./meta.nix;
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
inputs.disko.nixosModules.disko
|
||||
./hard.nix
|
||||
inputs.comin.nixosModules.comin
|
||||
./host.nix
|
||||
../../modules
|
||||
];
|
||||
|
||||
docker.enable = true;
|
||||
inherit (meta) host;
|
||||
|
||||
ssh.enable = true;
|
||||
tailscale.enable = true;
|
||||
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
{
|
||||
host = {
|
||||
username = "username";
|
||||
};
|
||||
}
|
||||
@@ -1,9 +1,8 @@
|
||||
{
|
||||
system = "x86_64-linux";
|
||||
deployment = {
|
||||
tags = [ "cloud" ];
|
||||
targetHost = "hecuba";
|
||||
targetUser = "username";
|
||||
};
|
||||
role = "server";
|
||||
tags = [ "cloud" ];
|
||||
host = {
|
||||
username = "username";
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user