nix/nixos/hosts/nixos-osaka-vultr-01/default.nix
2023-09-20 20:54:06 +09:00

28 lines
No EOL
793 B
Nix

{ config, lib, pkgs, modulesPath, desktop, username, ... }: {
imports = [
./disks.nix
];
nixpkgs.config.allowUnfree = 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 = "nixos-osaka-vultr-01";
boot.loader.grub = {
enableCryptodisk = true;
enable = true;
device = "/dev/vda";
efiSupport = true;
efiInstallAsRemovable = true;
useOSProber = true;
};
networking.firewall.allowedTCPPorts = [ 22 ];
}