From a57c5183d82dac519c0f4105a93a197ee53bc561 Mon Sep 17 00:00:00 2001 From: yuri Date: Fri, 4 Aug 2023 02:30:57 +0200 Subject: [PATCH] Set boot.growPartition = true --- configuration/proxmox-vm/default.nix | 6 ------ configuration/proxmox-vm/hardware-configuration.nix | 10 +++++++++- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/configuration/proxmox-vm/default.nix b/configuration/proxmox-vm/default.nix index 4c5bc6e..42fc9c9 100644 --- a/configuration/proxmox-vm/default.nix +++ b/configuration/proxmox-vm/default.nix @@ -4,11 +4,5 @@ ./hardware-configuration.nix ]; - # Enable console output on TTY1 and serial console - boot.kernelParams = [ - "console=tty1" - "console=ttyS0,115200" - ]; - services.qemuGuest.enable = true; } diff --git a/configuration/proxmox-vm/hardware-configuration.nix b/configuration/proxmox-vm/hardware-configuration.nix index 0d9fa83..3d4a237 100644 --- a/configuration/proxmox-vm/hardware-configuration.nix +++ b/configuration/proxmox-vm/hardware-configuration.nix @@ -15,12 +15,20 @@ kernelModules = [ "kvm-amd" ]; extraModulePackages = [ ]; + + # Enable console output on TTY1 and serial console + kernelParams = [ + "console=tty1" + "console=ttyS0,115200" + ]; + + growPartition = true; }; fileSystems."/" = { device = "/dev/disk/by-label/nixos"; fsType = "ext4"; - options = [ "x-nixos.autoresize" "x-initrd.mount" ]; + autoResize = true; }; swapDevices = [ ];