nix/nixos/hosts/nixos-osaka-vultr-01/default.nix

26 lines
777 B
Nix
Raw Normal View History

2023-09-20 11:52:00 +02:00
{ config, lib, pkgs, modulesPath, desktop, username, ... }: {
2023-09-20 12:44:43 +02:00
imports = [ (import ./disks.nix { }) ];
2023-09-20 11:52:00 +02:00
nixpkgs.config.allowUnfree = false;
2023-09-20 12:40:48 +02:00
boot.initrd.availableKernelModules = [ "ata_piix" "ohci_pci" "virtio_pci" "virtio_blk" "sr_mod" ];
2023-09-20 11:52:00 +02:00
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
2023-09-20 12:40:48 +02:00
virtualization.hyprvGuest.enable = true;
2023-09-20 11:52:00 +02:00
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
time.timeZone = "Asia/Tokyo";
2023-09-20 12:40:48 +02:00
networking.hostName = "nixos-osaka-vultr-01";
2023-09-20 11:52:00 +02:00
boot.loader.grub = {
2023-09-20 12:40:48 +02:00
#enableCryptodisk = true;
2023-09-20 11:52:00 +02:00
enable = true;
2023-09-20 12:40:48 +02:00
#device = "/dev/vda";
#useOSProber = true;
2023-09-20 11:52:00 +02:00
};
networking.firewall.allowedTCPPorts = [ 22 ];
2023-09-20 12:40:48 +02:00
time.timezone = "Asia/Tokyo";
2023-09-20 11:52:00 +02:00
}