nix/nixos/hosts/nixos-osaka-vultr-01/default.nix
2023-09-20 19:44:43 +09:00

25 lines
777 B
Nix

{ config, lib, pkgs, modulesPath, desktop, username, ... }: {
imports = [ (import ./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 = [ ];
virtualization.hyprvGuest.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";
#useOSProber = true;
};
networking.firewall.allowedTCPPorts = [ 22 ];
time.timezone = "Asia/Tokyo";
}