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

24 lines
739 B
Nix
Raw Normal View History

2023-09-21 14:01:13 +02:00
{ config, lib, pkgs, modulesPath, desktop, username, ... }: {
2023-09-21 15:22:59 +02:00
imports = [
# This machine won't be using secureboot
2023-09-22 11:50:46 +02:00
../../common/modules/boot.nix
2023-09-23 08:59:24 +02:00
# Testing swap
../nixos-framework/disks.nix
# ./disks.nix
2023-09-21 15:22:59 +02:00
];
2023-09-23 11:38:00 +02:00
nixpkgs.config.allowUnfree = true;
2023-09-21 14:01:13 +02:00
boot.initrd.availableKernelModules = [ "ata_piix" "ohci_pci" "ehci_pci" "ahci" "sd_mod" "sr_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
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-02";
networking.firewall.allowedTCPPorts = [ 22 ];
}