flake/hosts/vultr/common/default.nix

40 lines
657 B
Nix
Raw Normal View History

2024-09-21 16:21:30 +00:00
{
inputs,
modulesPath,
lib,
...
}:
{
imports =
[
"${modulesPath}/installer/scan/not-detected.nix"
"${modulesPath}/profiles/qemu-guest.nix"
./disko.nix
./preservation.nix
]
++ (with inputs; [
disko.nixosModules.disko
preservation.nixosModules.preservation
]);
# vnc
services.getty.autologinUser = "root";
networking = {
useNetworkd = true;
useDHCP = false;
};
systemd.network.networks.ethernet = {
matchConfig.Name = [
"en*"
"eth*"
];
DHCP = "yes";
};
boot.loader.grub.enable = true;
boot.loader.grub.devices = lib.mkDefault [ "/dev/vda" ];
}