added disko configuration to remove disk formatting from auto installer

This commit is contained in:
2026-07-15 07:30:32 +10:00
parent 0aae9c3bcf
commit 5dc41e2866
4 changed files with 51 additions and 4 deletions
Generated
+3 -3
View File
@@ -147,11 +147,11 @@
},
"nixpkgs_2": {
"locked": {
"lastModified": 1783703440,
"narHash": "sha256-O3/YajjWo001VUIgD8BwaRdSNLUFe7nZ1qV5TwhRBcw=",
"lastModified": 1784011430,
"narHash": "sha256-lDebytrYdd47IBLwvNOD+6AGeoqZ78CIKlp70hzW280=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "8f0500b9660505dc3cb647775fe9a978a74b5283",
"rev": "8eeec934ae0dbeca3d7868c059568a65c08b2fc3",
"type": "github"
},
"original": {
+1
View File
@@ -116,6 +116,7 @@ docker = nixpkgs.lib.nixosSystem {
nix-minimal = nixpkgs.lib.nixosSystem {
inherit system;
modules = [
inputs.disko.nixosModules.disko
./hosts/nix-minimal/configuration.nix
./modules/hardware-configuration/vm/proxmox.nix
+3 -1
View File
@@ -2,14 +2,16 @@
# your system. Help is available in the configuration.nix(5) man page, on
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
{ config, lib, pkgs, inputs, ... }:
{ config, lib, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
# inputs.disko.nixosModules.disko
../../modules/common/configuration.nix
../../modules/nix-cache/client.nix
../../modules/remote-builder-client.nix
../../modules/disko/proxmox.nix
];
networking.hostName = "nix-minimal"; # Define your hostname.
+44
View File
@@ -0,0 +1,44 @@
{ ... }:
{
disko.devices = {
disk.main = {
type = "disk";
device = "/dev/sda";
content = {
type = "gpt";
partitions = {
root = {
priority = 1;
size = "-8G";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
extraArgs = [
"-L"
"nixos"
];
};
};
swap = {
priority = 2;
size = "100%";
content = {
type = "swap";
extraArgs = [
"-L"
"swap"
];
};
};
};
};
};
};
}