Archived
updated proxmox disko configuration
Check NixOS configurations / eval-hosts (push) Failing after 17m51s
Check NixOS configurations / eval-hosts (push) Failing after 17m51s
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
@@ -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";
|
||||||
|
|||||||
@@ -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";
|
||||||
|
|||||||
Reference in New Issue
Block a user