diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..504f7b3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ + +result +*.qcow2 +configuration-staging-bootstrap.nix +hosts/staging/hardware-configuration.nix.before-netcup diff --git a/hosts/staging/hardware-configuration.nix b/hosts/staging/hardware-configuration.nix index dab1e7d..a450070 100644 --- a/hosts/staging/hardware-configuration.nix +++ b/hosts/staging/hardware-configuration.nix @@ -1,17 +1,26 @@ -{ config, lib, modulesPath, ... }: +# 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, ... }: + { - # Good defaults for cloud VMs - imports = [ (modulesPath + "/profiles/qemu-guest.nix") ]; + imports = + [ (modulesPath + "/profiles/qemu-guest.nix") + ]; - # Placeholder root FS (you MUST replace this on real machines) - fileSystems."/" = { - device = "/dev/disk/by-label/nixos"; - fsType = "ext4"; - }; + boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "sr_mod" "virtio_blk" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ ]; + boot.extraModulePackages = [ ]; - # Placeholder bootloader target (adjust /dev/vda vs /dev/sda depending on provider) - boot.loader.grub.enable = true; - boot.loader.grub.devices = [ "/dev/vda" ]; + fileSystems."/" = + { device = "/dev/disk/by-uuid/1fbb884a-7224-47c1-9bc2-aba5f583ad63"; + fsType = "ext4"; + }; - networking.useDHCP = lib.mkDefault true; + swapDevices = + [ { device = "/dev/disk/by-uuid/1ab7a8b0-589d-4892-8cb6-47b0125e4085"; } + ]; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; }