Update VM
This commit is contained in:
parent
2098358481
commit
799fa5c31d
1 changed files with 22 additions and 0 deletions
22
nixos/hosts/nixos-vm-01/default.nix
Normal file
22
nixos/hosts/nixos-vm-01/default.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{ 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;
|
||||
# Set your time zone.
|
||||
time.timeZone = "Asia/Tokyo";
|
||||
# Set the networking hostname:
|
||||
networking.hostName = "nixos-vm-01";
|
||||
}
|
Loading…
Reference in a new issue