yate-dialup: bootstrap host
This commit is contained in:
parent
fa1a83155b
commit
5d1bca33e1
@ -47,6 +47,10 @@
|
|||||||
deployment.targetHost = "yate.bula22.de";
|
deployment.targetHost = "yate.bula22.de";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
yate-dialup = { ... }: {
|
||||||
|
deployment.targetHost = "yate-dialup.bula22.de";
|
||||||
|
};
|
||||||
|
|
||||||
pre-router = { config, pkgs, ... }: {
|
pre-router = { config, pkgs, ... }: {
|
||||||
deployment.targetHost = "fd00:10:42:10::25";
|
deployment.targetHost = "fd00:10:42:10::25";
|
||||||
deployment.keys = {
|
deployment.keys = {
|
||||||
|
@ -31,8 +31,8 @@
|
|||||||
"2a01:4f8:1c0c:8221::1"
|
"2a01:4f8:1c0c:8221::1"
|
||||||
];
|
];
|
||||||
dns = [
|
dns = [
|
||||||
"10.42.10.1"
|
"10.42.10.8"
|
||||||
"2a01:4f8:1c0c:8221::1"
|
"2a01:4f8:1c0c:8221::8"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
45
hosts/yate-dialup/configuration.nix
Normal file
45
hosts/yate-dialup/configuration.nix
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports =
|
||||||
|
[ # Include the results of the hardware scan.
|
||||||
|
./hardware-configuration.nix
|
||||||
|
./voip.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
# Use the systemd-boot EFI boot loader.
|
||||||
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
|
networking.hostName = "yate-dialup";
|
||||||
|
|
||||||
|
networking.useNetworkd = true;
|
||||||
|
systemd.network = {
|
||||||
|
networks."10-ens18" = {
|
||||||
|
matchConfig = {
|
||||||
|
Name = "ens18";
|
||||||
|
};
|
||||||
|
address = [
|
||||||
|
"10.42.10.9/24"
|
||||||
|
"2a01:4f8:1c0c:8221::9/64"
|
||||||
|
];
|
||||||
|
gateway = [
|
||||||
|
"10.42.10.1"
|
||||||
|
"2a01:4f8:1c0c:8221::1"
|
||||||
|
];
|
||||||
|
dns = [
|
||||||
|
"10.42.10.8"
|
||||||
|
"2a01:4f8:1c0c:8221::8"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# This value determines the NixOS release from which the default
|
||||||
|
# settings for stateful data, like file locations and database versions
|
||||||
|
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||||||
|
# this value at the release version of the first install of this system.
|
||||||
|
# Before changing this value read the documentation for this option
|
||||||
|
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||||
|
system.stateVersion = "22.05"; # Did you read the comment?
|
||||||
|
|
||||||
|
}
|
37
hosts/yate-dialup/hardware-configuration.nix
Normal file
37
hosts/yate-dialup/hardware-configuration.nix
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||||
|
# and may be overwritten by future invocations. Please make changes
|
||||||
|
# to /etc/nixos/configuration.nix instead.
|
||||||
|
{ config, lib, pkgs, modulesPath, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports =
|
||||||
|
[ (modulesPath + "/profiles/qemu-guest.nix")
|
||||||
|
];
|
||||||
|
|
||||||
|
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ];
|
||||||
|
boot.initrd.kernelModules = [ ];
|
||||||
|
boot.kernelModules = [ "kvm-intel" ];
|
||||||
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
|
fileSystems."/" =
|
||||||
|
{ device = "/dev/disk/by-uuid/a2e0233a-3bfd-4c17-8139-41ebe0733ec4";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/boot" =
|
||||||
|
{ device = "/dev/disk/by-uuid/5BC9-396D";
|
||||||
|
fsType = "vfat";
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices = [ ];
|
||||||
|
|
||||||
|
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||||
|
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||||
|
# still possible to use this option, but it's recommended to use it in conjunction
|
||||||
|
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||||
|
networking.useDHCP = lib.mkDefault true;
|
||||||
|
# networking.interfaces.ens18.useDHCP = lib.mkDefault true;
|
||||||
|
|
||||||
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
}
|
||||||
|
|
7
hosts/yate-dialup/voip.nix
Normal file
7
hosts/yate-dialup/voip.nix
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
services.yate = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user