Working refactored (on a test server)
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
{ hostname, profile, domain, site, home-manager-package, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./lib
|
||||
./config
|
||||
./packages
|
||||
|
||||
(import "${home-manager-package}/nixos")
|
||||
|
||||
(./. + "/config/hardware/${hostname}.nix")
|
||||
(./. + "/config/hosts/${hostname}.nix")
|
||||
(./. + "/config/profiles/${profile}.nix")
|
||||
(./. + "/config/domains/${domain}.nix")
|
||||
(./. + "/config/sites/${site}.nix")
|
||||
];
|
||||
|
||||
config = {
|
||||
instance = {
|
||||
hostname = hostname;
|
||||
};
|
||||
|
||||
fudo.hosts."${hostname}" = {
|
||||
domain = domain;
|
||||
hostname = hostname;
|
||||
site = site;
|
||||
profile = profile;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user