From c170d650c67db83c96404d9dd91a5b165600303e Mon Sep 17 00:00:00 2001 From: randomuser Date: Thu, 28 Dec 2023 15:28:48 -0600 Subject: [PATCH] changes --- boxes/{mainsail.nix => mainsail/default.nix} | 2 -- boxes/mainsail/hardware-configuration.nix | 31 ++++++++++++++++++++ 2 files changed, 31 insertions(+), 2 deletions(-) rename boxes/{mainsail.nix => mainsail/default.nix} (98%) create mode 100644 boxes/mainsail/hardware-configuration.nix diff --git a/boxes/mainsail.nix b/boxes/mainsail/default.nix similarity index 98% rename from boxes/mainsail.nix rename to boxes/mainsail/default.nix index 4e466bf..f3b7209 100644 --- a/boxes/mainsail.nix +++ b/boxes/mainsail/default.nix @@ -1,8 +1,6 @@ { lib, config, pkgs, ...}: { imports = [ - ../common/steam.nix - ../common/desktop.nix ]; boot.loader.grub.enable = true; diff --git a/boxes/mainsail/hardware-configuration.nix b/boxes/mainsail/hardware-configuration.nix new file mode 100644 index 0000000..c2a86c1 --- /dev/null +++ b/boxes/mainsail/hardware-configuration.nix @@ -0,0 +1,31 @@ +# 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 = [ "ahci" "xhci_pci" "virtio_pci" "sr_mod" "virtio_blk" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/7b70ab88-296c-4737-90b2-267cb2432dc1"; + 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.enp1s0.useDHCP = lib.mkDefault true; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; +}