refactor: extract host config into 'host.nix' files
This commit is contained in:
@@ -6,16 +6,12 @@
|
||||
{
|
||||
imports = [
|
||||
./hard.nix
|
||||
../../modules/ssh
|
||||
./host.nix
|
||||
../../modules/common
|
||||
../../modules/ssh
|
||||
# ../../modules/uptime-kuma
|
||||
];
|
||||
|
||||
host = {
|
||||
username = "h";
|
||||
name = "eetion";
|
||||
};
|
||||
|
||||
ssh = {
|
||||
inherit (config.host) username;
|
||||
publicHostname = config.host.name;
|
||||
|
||||
6
hosts/eetion/host.nix
Normal file
6
hosts/eetion/host.nix
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
host = {
|
||||
username = "h";
|
||||
name = "eetion";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user