diff --git a/hardware.nix b/hardware.nix deleted file mode 100644 index 07077a0..0000000 --- a/hardware.nix +++ /dev/null @@ -1,58 +0,0 @@ -# Do not modify this file! It was generated by ‘nixos-generate-config’ -# and may be overwritten by future invocations. Please make changes -# to /etc/nixos/configuration.nix instead. -{ config, lib, pkgs, modulesPath, ... }: - -{ - imports = - [ (modulesPath + "/profiles/qemu-guest.nix") - ]; - - boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ]; - boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ ]; - boot.extraModulePackages = [ ]; - - fileSystems."/" = - { device = "tmpfs"; - fsType = "tmpfs"; - }; - - fileSystems."/iso" = - { device = "/dev/disk/by-uuid/1980-01-01-00-00-00-00"; - fsType = "iso9660"; - }; - - fileSystems."/nix/.ro-store" = - { device = "/iso/nix-store.squashfs"; - fsType = "squashfs"; - options = [ "loop" ]; - }; - - fileSystems."/nix/.rw-store" = - { device = "tmpfs"; - fsType = "tmpfs"; - }; - - fileSystems."/nix/store" = - { device = "overlay"; - fsType = "overlay"; - }; - - fileSystems."/mnt" = - { device = "/dev/disk/by-uuid/78bbf8a3-b4d6-4f1b-824e-4a9132aae372"; - fsType = "ext4"; - }; - - swapDevices = [ ]; - - # Enables DHCP on each ethernet and wireless interface. In case of scripted networking - # (the default) this is the recommended approach. When using systemd-networkd it's - # still possible to use this option, but it's recommended to use it in conjunction - # with explicit per-interface declarations with `networking.interfaces..useDHCP`. - networking.useDHCP = lib.mkDefault true; - # networking.interfaces.ens18.useDHCP = lib.mkDefault true; - # networking.interfaces.ens19.useDHCP = lib.mkDefault true; - - nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; -} diff --git a/hosts/vm/two/default.nix b/hosts/vm/two/default.nix index b1332cd..e35c54c 100644 --- a/hosts/vm/two/default.nix +++ b/hosts/vm/two/default.nix @@ -7,4 +7,8 @@ ../../../modules/crans ]; + + boot.loader.grub.devices = [ "nodev" ]; + + system.stateVersion = "23.11"; } diff --git a/hosts/vm/two/hardware-configuration.nix b/hosts/vm/two/hardware-configuration.nix index 07077a0..98e94d3 100644 --- a/hosts/vm/two/hardware-configuration.nix +++ b/hosts/vm/two/hardware-configuration.nix @@ -5,7 +5,8 @@ { imports = - [ (modulesPath + "/profiles/qemu-guest.nix") + [ + (modulesPath + "/profiles/qemu-guest.nix") ]; boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ]; @@ -14,33 +15,8 @@ boot.extraModulePackages = [ ]; fileSystems."/" = - { device = "tmpfs"; - fsType = "tmpfs"; - }; - - fileSystems."/iso" = - { device = "/dev/disk/by-uuid/1980-01-01-00-00-00-00"; - fsType = "iso9660"; - }; - - fileSystems."/nix/.ro-store" = - { device = "/iso/nix-store.squashfs"; - fsType = "squashfs"; - options = [ "loop" ]; - }; - - fileSystems."/nix/.rw-store" = - { device = "tmpfs"; - fsType = "tmpfs"; - }; - - fileSystems."/nix/store" = - { device = "overlay"; - fsType = "overlay"; - }; - - fileSystems."/mnt" = - { device = "/dev/disk/by-uuid/78bbf8a3-b4d6-4f1b-824e-4a9132aae372"; + { + device = "/dev/disk/by-uuid/78bbf8a3-b4d6-4f1b-824e-4a9132aae372"; fsType = "ext4"; }; diff --git a/hosts/vm/two/hardware.nix b/hosts/vm/two/hardware.nix deleted file mode 100644 index 8234bec..0000000 --- a/hosts/vm/two/hardware.nix +++ /dev/null @@ -1,32 +0,0 @@ -# Do not modify this file! It was generated by ‘nixos-generate-config’ -# and may be overwritten by future invocations. Please make changes -# to /etc/nixos/configuration.nix instead. -{ config, lib, pkgs, modulesPath, ... }: - -{ - imports = - [ (modulesPath + "/profiles/qemu-guest.nix") - ]; - - boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ]; - boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ ]; - boot.extraModulePackages = [ ]; - - fileSystems."/" = - { device = "/dev/disk/by-uuid/78bbf8a3-b4d6-4f1b-824e-4a9132aae372"; - fsType = "ext4"; - }; - - swapDevices = [ ]; - - # Enables DHCP on each ethernet and wireless interface. In case of scripted networking - # (the default) this is the recommended approach. When using systemd-networkd it's - # still possible to use this option, but it's recommended to use it in conjunction - # with explicit per-interface declarations with `networking.interfaces..useDHCP`. - networking.useDHCP = lib.mkDefault true; - # networking.interfaces.ens18.useDHCP = lib.mkDefault true; - # networking.interfaces.ens19.useDHCP = lib.mkDefault true; - - nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; -}