refactor: extract host config into 'host.nix' files

This commit is contained in:
2026-03-11 23:36:54 +01:00
parent 12481d7468
commit 32e928c56b
12 changed files with 49 additions and 36 deletions

View File

@@ -10,17 +10,13 @@
{
imports = [
inputs.disko.nixosModules.disko
../../modules/common
./hard.nix
./host.nix
../../modules/common
../../modules/ssh
../../modules/docker
];
host = {
username = "username";
name = "hecuba";
};
networking.hostName = config.host.name;
ssh = {
inherit (config.host) username;

6
hosts/hecuba/host.nix Normal file
View File

@@ -0,0 +1,6 @@
{
host = {
username = "username";
name = "hecuba";
};
}