Glom NAS machine vega
This commit is contained in:
60
machines/vega/configuration.nix
Normal file
60
machines/vega/configuration.nix
Normal file
@@ -0,0 +1,60 @@
|
||||
{
|
||||
inputs,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
(inputs.import-tree ./services)
|
||||
|
||||
(import ../../lib/auto-accept-zerotier-members.nix {
|
||||
memberIds = [
|
||||
"dbe44c0287" # Alex-gateway
|
||||
"1b495eede9" # kurogeek-thinkpad
|
||||
];
|
||||
})
|
||||
];
|
||||
|
||||
clan.core.sops.defaultGroups = [ "admins" ];
|
||||
|
||||
nixpkgs.hostPlatform = {
|
||||
system = "x86_64-linux";
|
||||
};
|
||||
|
||||
clan.core.vars.generators.vega-public-domain = {
|
||||
files.name.secret = false;
|
||||
|
||||
prompts = {
|
||||
name = {
|
||||
persist = true;
|
||||
type = "line";
|
||||
description = "Base public domain for Vega machine. Default:(glomglom.fun)";
|
||||
};
|
||||
};
|
||||
|
||||
script = ''cat $prompts/name || echo -n "glomglom.fun" > $out/name'';
|
||||
};
|
||||
|
||||
clan.core.vars.generators.vega-internal-domain = {
|
||||
files.name.secret = false;
|
||||
|
||||
prompts = {
|
||||
name = {
|
||||
persist = true;
|
||||
type = "line";
|
||||
description = "Base internal domain for Vega machine. Default:(glom.newedge.house)";
|
||||
};
|
||||
};
|
||||
|
||||
script = ''cat $prompts/name || echo -n "glom.newedge.house" > $out/name'';
|
||||
};
|
||||
|
||||
networking.fqdn = config.clan.core.vars.generators.vega-internal-domain.files.name.value;
|
||||
system.stateVersion = "25.11";
|
||||
|
||||
# security.acme.defaults.email = "admin@b4l.co.th";
|
||||
# security.acme.acceptTerms = true;
|
||||
# services.nginx.virtualHosts."${config.networking.fqdn}" = {
|
||||
# enableACME = true;
|
||||
# };
|
||||
}
|
Reference in New Issue
Block a user