mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
feat: meiling
This commit is contained in:
parent
dd30009b7e
commit
47ca22ff47
30 changed files with 431 additions and 70 deletions
15
systems/ct-reisen/default.nix
Normal file
15
systems/ct-reisen/default.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
_: {
|
||||
arch = "x86_64";
|
||||
type = "NixOS";
|
||||
modules = [
|
||||
./nixos.nix
|
||||
];
|
||||
access.online.enable = false;
|
||||
network.networks = {
|
||||
local = {
|
||||
fqdn = null;
|
||||
address4 = null;
|
||||
address6 = null;
|
||||
};
|
||||
};
|
||||
}
|
||||
35
systems/ct-reisen/nixos.nix
Normal file
35
systems/ct-reisen/nixos.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{meta, lib, ...}: {
|
||||
imports = with meta; [
|
||||
nixos.ct.reisen
|
||||
];
|
||||
|
||||
# allow proxmox to provide us with our hostname
|
||||
environment.etc.hostname.enable = false;
|
||||
services.avahi.hostName = "";
|
||||
|
||||
system = {
|
||||
stateVersion = "23.11";
|
||||
nixos.tags = lib.mkForce [ "template" ];
|
||||
};
|
||||
environment.etc."systemd/network/eth9.network.d/int.conf".text = ''
|
||||
[Match]
|
||||
Name=eth9
|
||||
Type=ether
|
||||
|
||||
[Link]
|
||||
RequiredForOnline=false
|
||||
|
||||
[Network]
|
||||
IPv6AcceptRA=true
|
||||
IPv6SendRA=false
|
||||
DHCP=no
|
||||
|
||||
[IPv6Prefix]
|
||||
AddressAutoconfiguration=false
|
||||
Prefix=fd0c::/64
|
||||
Assign=true
|
||||
|
||||
[IPv6AcceptRA]
|
||||
DHCPv6Client=false
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue