31 lines
No EOL
927 B
Nix
31 lines
No EOL
927 B
Nix
{ config, lib, pkgs, modulesPath, desktop, username, ... }: {
|
|
imports = [
|
|
# This machine won't be using secureboot
|
|
../../common/modules/boot.nix
|
|
./disks.nix
|
|
];
|
|
nixpkgs.config.allowUnfree = false;
|
|
boot.loader.grub.eficanTouchVariables = lib.mkForce false;
|
|
|
|
boot.initrd.availableKernelModules = [ "ata_piix" "ohci_pci" "virtio_pci" "virtio_blk" "sr_mod" ];
|
|
boot.initrd.kernelModules = [ ];
|
|
boot.kernelModules = [ ];
|
|
boot.extraModulePackages = [ ];
|
|
virtualisation.hypervGuest.enable = true;
|
|
|
|
networking.useDHCP = lib.mkDefault true;
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
time.timeZone = "Asia/Tokyo";
|
|
networking.hostName = "osaka-vultr-01";
|
|
|
|
boot.loader.grub = {
|
|
enableCryptodisk = true;
|
|
enable = true;
|
|
device = "/dev/vda";
|
|
efiSupport = true;
|
|
efiInstallAsRemovable = true;
|
|
useOSProber = true;
|
|
};
|
|
|
|
networking.firewall.allowedTCPPorts = [ 22 ];
|
|
} |