refactor: derive host name solely from host directory name

This commit is contained in:
2026-04-30 16:40:45 +02:00
parent ce02cc5538
commit 95ffe7b908
19 changed files with 40 additions and 53 deletions

View File

@@ -51,9 +51,7 @@ in
../../modules/yubikey
];
home-manager.users.${config.host.username} = import ../../home/hosts/andromache;
ssh.authorizedHosts = [ "astyanax" ];
home-manager.users.${config.host.username} = import ../../home/hosts/${config.host.name};
secrets.nixSigningKey.enable = true;

View File

@@ -1,7 +1,7 @@
{
host = {
username = "h";
name = "andromache";
highRam = true;
admin = true;
};
}

View File

@@ -47,9 +47,7 @@ in
../../modules/yubikey
];
home-manager.users.${config.host.username} = import ../../home/hosts/astyanax;
ssh.authorizedHosts = [ "andromache" ];
home-manager.users.${config.host.username} = import ../../home/hosts/${config.host.name};
secrets.nixSigningKey.enable = true;

View File

@@ -1,7 +1,7 @@
{
host = {
username = "h";
name = "astyanax";
highRam = true;
admin = true;
};
}

View File

@@ -11,13 +11,6 @@
../../modules/ssh
];
ssh = {
authorizedHosts = [
"andromache"
"astyanax"
];
};
boot = {
kernelParams = [
"console=ttyS1,115200n8"

View File

@@ -1,6 +1,5 @@
{
host = {
username = "h";
name = "eetion-02";
};
}

View File

@@ -15,13 +15,6 @@
tailscale.enable = true;
ssh = {
authorizedHosts = [
"andromache"
"astyanax"
];
};
boot.loader = {
grub.enable = false;
generic-extlinux-compatible.enable = true;

View File

@@ -1,6 +1,5 @@
{
host = {
username = "h";
name = "eetion";
};
}

View File

@@ -18,13 +18,6 @@
];
networking.hostName = config.host.name;
ssh = {
authorizedHosts = [
"andromache"
"astyanax"
];
};
docker.enable = true;
fileSystems."/" = {

View File

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

View File

@@ -1,6 +1,5 @@
{
host = {
username = "h";
name = "vm";
};
}