refactor: extract host config into 'host.nix' files
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user