diff --git a/hosts/nextcloud/configuration.nix b/hosts/nextcloud/configuration.nix index 028dc5b..99c2654 100644 --- a/hosts/nextcloud/configuration.nix +++ b/hosts/nextcloud/configuration.nix @@ -1,13 +1,10 @@ { ... }: { - networking.hostName = "nextcloud"; custom.nextcloud_domain = "nextcloud.vsinerva.fi"; imports = [ ../../shared/base.nix + ../../shared/hardware/vm.nix ../../servers/nextcloud.nix ]; - - # HARDWARE SPECIFIC - services.qemuGuest.enable = true; } diff --git a/hosts/nextcloud/state.nix b/hosts/nextcloud/state.nix new file mode 100644 index 0000000..9f49631 --- /dev/null +++ b/hosts/nextcloud/state.nix @@ -0,0 +1,39 @@ +{ lib, modulesPath, ... }: +{ + system.stateVersion = "23.05"; + + 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/428cdba7-04a8-4e69-992a-96aa197cd6c7"; + fsType = "ext4"; + }; + + fileSystems."/boot" = { + device = "/dev/disk/by-uuid/08B5-BFD8"; + fsType = "vfat"; + options = [ + "fmask=0022" + "dmask=0022" + ]; + }; + + networking.useDHCP = lib.mkDefault true; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; +} diff --git a/servers/nextcloud.nix b/servers/nextcloud.nix index a8c6f20..3001a78 100644 --- a/servers/nextcloud.nix +++ b/servers/nextcloud.nix @@ -5,7 +5,10 @@ ... }: { - imports = [ ./cert-store-client.nix ]; + imports = [ + ./utils/nginx-https-server.nix + ./utils/cert-store-client.nix + ]; options.custom = { nextcloud_domain = lib.mkOption {