updated proxmox disko configuration

This commit is contained in:
2026-07-18 05:54:32 +10:00
parent f8de4c8abc
commit 4822f0b290
5 changed files with 3 additions and 66 deletions
+1
View File
@@ -131,6 +131,7 @@ docker = nixpkgs.lib.nixosSystem {
pxe-boot = nixpkgs.lib.nixosSystem { pxe-boot = nixpkgs.lib.nixosSystem {
inherit system; inherit system;
modules = [ modules = [
inputs.disko.nixosModules.disko
./hosts/pxe-boot/configuration.nix ./hosts/pxe-boot/configuration.nix
./modules/hardware-configuration/vm/proxmox.nix ./modules/hardware-configuration/vm/proxmox.nix
-1
View File
@@ -8,7 +8,6 @@
imports = imports =
[ # Include the results of the hardware scan. [ # Include the results of the hardware scan.
../../modules/common/configuration.nix ../../modules/common/configuration.nix
# ../../modules/disko/linode.nix
]; ];
# Use the GRUB 2 boot loader. # Use the GRUB 2 boot loader.
+1
View File
@@ -96,6 +96,7 @@ in
../../modules/common/configuration.nix ../../modules/common/configuration.nix
../../modules/nix/cache-client.nix ../../modules/nix/cache-client.nix
../../modules/nix/remote-builder-client.nix ../../modules/nix/remote-builder-client.nix
../../modules/disko/proxmox.nix
]; ];
networking.hostName = "pxe-boot"; networking.hostName = "pxe-boot";
-64
View File
@@ -1,64 +0,0 @@
{ ... }:
{
disko.devices = {
disk.main = {
type = "disk";
device = "/dev/sda";
content = {
type = "gpt";
partitions = {
# bios = {
# size = "1M";
# # content = {
# # type = "EF02";
# # };
# };
root = {
priority = 1;
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
extraArgs = [
"-L"
"nixos"
];
};
};
};
};
};
disk.swap = {
type = "disk";
device = "/dev/sdb";
content = {
type = "gpt";
partitions = {
swap = {
priority = 1;
size = "100%";
content = {
type = "swap";
extraArgs = [
"-L"
"swap"
];
};
};
};
};
};
};
}
@@ -12,7 +12,7 @@
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ]; boot.kernelModules = [ ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only boot.loader.grub.device = "/dev/sda2"; # or "nodev" for efi only
# fileSystems."/" = # fileSystems."/" =
# { device = "/dev/disk/by-label/nixos"; # { device = "/dev/disk/by-label/nixos";