dolomite: drop tok-00, add fre-00

This commit is contained in:
xinyangli 2024-11-26 17:36:16 +08:00
parent 5b19d8a97e
commit 1c40bbc98f
Signed by: xin
SSH key fingerprint: SHA256:UU5pRTl7NiLFJbWJZa+snLylZSXIz5rgHmwjzv8v4oE
11 changed files with 151 additions and 286 deletions

62
machines/dolomite/fra.nix Normal file
View file

@ -0,0 +1,62 @@
# Do not modify this file! It was generated by nixos-generate-co
# and may be overwritten by future invocations. Please make chang
# to /etc/nixos/configuration.nix instead.
{
config,
lib,
pkgs,
modulesPath,
...
}:
{
imports = [
(modulesPath + "/profiles/qemu-guest.nix")
];
swapDevices = [
{
device = "/swapfile";
size = 2 * 1024;
}
];
boot.initrd.availableKernelModules = [
"uhci_hcd"
"virtio_scsi"
"sd_mod"
"sr_mod"
"ahci"
"ata_piix"
"virtio_pci"
"xen_blkfront"
"vmw_pvscsi"
];
boot.loader.grub = {
enable = true;
device = "/dev/sda";
};
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
device = "/dev/sda1";
fsType = "ext4";
};
networking.useNetworkd = true;
systemd.network.enable = true;
systemd.network.networks."10-wan" = {
matchConfig.MACAddress = "00:16:3c:d2:7b:64";
networkConfig = {
DHCP = "no";
Gateway = "185.217.108.1";
};
address = [ "185.217.108.59/24" ];
};
custom.prometheus.enable = false;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}