diff --git a/hosts/idacloud/configuration.nix b/hosts/idacloud/configuration.nix index 49c26d4..07ad6fa 100644 --- a/hosts/idacloud/configuration.nix +++ b/hosts/idacloud/configuration.nix @@ -6,13 +6,12 @@ imports = [ ../../shared/base.nix + ../../shared/hardware/vm.nix ../../servers/nextcloud.nix ]; # Networking conf including WireGuard networking = { - hostName = "idacloud"; - firewall.allowedUDPPorts = [ 51822 ]; wg-quick.interfaces = { @@ -38,7 +37,4 @@ }; }; }; - - # HARDWARE SPECIFIC - services.qemuGuest.enable = true; } diff --git a/hosts/idacloud/state.nix b/hosts/idacloud/state.nix new file mode 100644 index 0000000..7bf990f --- /dev/null +++ b/hosts/idacloud/state.nix @@ -0,0 +1,44 @@ +{ lib, modulesPath, ... }: +{ + system.stateVersion = "24.11"; + + imports = [ + (modulesPath + "/profiles/qemu-guest.nix") + ]; + + boot.initrd.availableKernelModules = [ + "uhci_hcd" + "ehci_pci" + "ahci" + "virtio_pci" + "virtio_scsi" + "sd_mod" + "sr_mod" + ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-amd" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = { + device = "/dev/disk/by-uuid/aaebdb14-a988-4cf8-bb33-f22419d55fbe"; + fsType = "ext4"; + }; + + fileSystems."/boot" = { + device = "/dev/disk/by-uuid/E1C0-7A9E"; + fsType = "vfat"; + options = [ + "fmask=0077" + "dmask=0077" + ]; + }; + + fileSystems."/var/lib/nextcloud" = { + device = "/dev/disk/by-uuid/634b600c-8d3e-4021-906a-f00b7750e61e"; + fsType = "ext4"; + }; + + networking.useDHCP = lib.mkDefault true; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; +}