diff --git a/flake.nix b/flake.nix index 37de632..a03d08e 100644 --- a/flake.nix +++ b/flake.nix @@ -61,7 +61,7 @@ specialArgs = {inherit inputs outputs;}; modules = [ sops-nix.nixosModules.sops - srvos.nixosModules.hardware-hetzner-cloud + ./hardware/shadowfax-kubevirt.nix srvos.nixosModules.server srvos.nixosModules.mixins-systemd-boot disko.nixosModules.disko diff --git a/hardware/shadowfax-kubevirt.nix b/hardware/shadowfax-kubevirt.nix new file mode 100644 index 0000000..6a4ee12 --- /dev/null +++ b/hardware/shadowfax-kubevirt.nix @@ -0,0 +1,16 @@ +{ config, modulesPath, lib, ... }: +{ + imports = [ + "${modulesPath}/profiles/qemu-guest.nix" + ]; + + config = { + boot.growPartition = true; + boot.loader.grub.device = "/dev/vda"; + + fileSystems."/" = lib.mkDefault { device = "/dev/vda1"; fsType = "ext4"; }; + + networking.useNetworkd = true; + networking.useDHCP = false; + }; +} \ No newline at end of file