diff --git a/hardware/asus/hardware-configuration.nix b/hardware/asus/hardware-configuration.nix index 6d09acb..0a4f215 100644 --- a/hardware/asus/hardware-configuration.nix +++ b/hardware/asus/hardware-configuration.nix @@ -4,27 +4,29 @@ { config, lib, pkgs, modulesPath, ... }: { - imports = - [ (modulesPath + "/installer/scan/not-detected.nix") - ]; - - boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "sd_mod" "aesni_intel" "cryptd" ]; + boot.initrd.availableKernelModules = [ + "aesni_intel" + "ahci" + "cryptd" + "sd_mod" + "usb_storage" + "xhci_pci" + ]; boot.initrd.kernelModules = [ "dm-snapshot" ]; boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ ]; boot.initrd.luks.devices."cryptlvm".device = "/dev/sda2"; - fileSystems."/" = - { device = "/dev/disk/by-label/nixos"; - fsType = "ext4"; - }; + fileSystems."/" = { + device = "/dev/disk/by-label/nixos"; + fsType = "ext4"; + }; - fileSystems."/boot" = - { device = "/dev/disk/by-label/BOOT"; - fsType = "vfat"; - }; - - swapDevices = - [ { device = "/dev/disk/by-label/swap"; } - ]; + fileSystems."/boot" = { + device = "/dev/disk/by-label/BOOT"; + fsType = "vfat"; + }; + swapDevices = [ + { device = "/dev/disk/by-label/swap"; } + ]; } diff --git a/hardware/vm/configuration.nix b/hardware/vm/configuration.nix index b7c9c01..efdda49 100644 --- a/hardware/vm/configuration.nix +++ b/hardware/vm/configuration.nix @@ -11,8 +11,10 @@ ./hardware-configuration.nix ]; - networking.hostName = "nixos-vm"; # Define your hostname. - networking.interfaces.enp0s3.useDHCP = true; + networking = { + hostName = "nixos-vm"; + interfaces.enp0s3.useDHCP = true; + }; environment.variables = { ZWEILI_HARDWARE = "vm"; diff --git a/hardware/vm/hardware-configuration.nix b/hardware/vm/hardware-configuration.nix index 8453137..3ccd3a4 100644 --- a/hardware/vm/hardware-configuration.nix +++ b/hardware/vm/hardware-configuration.nix @@ -4,26 +4,29 @@ { config, lib, pkgs, modulesPath, ... }: { - imports = [ ]; - - boot.initrd.availableKernelModules = [ "ata_piix" "ohci_pci" "sd_mod" "sr_mod" ]; + boot.initrd.availableKernelModules = [ + "ata_piix" + "ohci_pci" + "sd_mod" + "sr_mod" + ]; boot.initrd.kernelModules = [ ]; boot.kernelModules = [ ]; boot.extraModulePackages = [ ]; - fileSystems."/" = - { device = "/dev/disk/by-label/nixos"; - fsType = "ext4"; - }; + fileSystems."/" = { + device = "/dev/disk/by-label/nixos"; + fsType = "ext4"; + }; - fileSystems."/boot" = - { device = "/dev/disk/by-label/BOOT"; - fsType = "vfat"; - }; + fileSystems."/boot" = { + device = "/dev/disk/by-label/BOOT"; + fsType = "vfat"; + }; - swapDevices = - [ { device = "/dev/disk/by-label/swap"; } - ]; + swapDevices = [ + { device = "/dev/disk/by-label/swap"; } + ]; virtualisation.virtualbox.guest.enable = true; }