nix/nixos/hosts/nixos-vm-01/default.nix

25 lines
736 B
Nix
Raw Normal View History

2023-09-17 12:07:48 +02:00
{ config, lib, pkgs, modulesPath, desktop, username, ... }: {
imports = [ ];
nixpkgs.config.allowUnfree = false;
boot.initrd.availableKernelModules = [ "ata_piix" "ohci_pci" "ehci_pci" "ahci" "sd_mod" "sr_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
device = "/dev/disk/by-label/ROOT";
fsType = "ext4";
};
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
virtualisation.virtualbox.guest.enable = true;
time.timeZone = "Asia/Tokyo";
networking.hostName = "nixos-vm-01";
2023-09-17 12:54:51 +02:00
boot.loader.enable = true;
2023-09-17 12:55:19 +02:00
boot.loader.grub.device = "/dev/sda";
2023-09-17 12:54:51 +02:00
boot.loader.grub.useOSProber = true;
2023-09-17 12:07:48 +02:00
}