fixed disko configuration

This commit is contained in:
2026-07-29 17:28:36 +01:00
parent 882ca8780a
commit 8198522f64
5 changed files with 96 additions and 51 deletions

View File

@@ -0,0 +1,31 @@
{lib, ...}: {
disko.devices = {
disk.sda = {
device = "/dev/sda";
type = "disk";
content = {
type = "gpt";
partitions = {
ESP = {
size = "1G";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
};
root = {
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
};
};
};
};
};
}

View File

@@ -4,6 +4,7 @@
...
}: {
flake.nixosConfigurations.server02 = inputs.nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = with self.nixosModules;
[
server02Configuration
@@ -12,7 +13,10 @@
++ (with inputs.nix-config.nixosModules; [
nvim
git
zsh
]);
# zsh
])
++ [
inputs.disko.nixosModules.disko
];
};
}

View File

@@ -3,6 +3,9 @@
networking = {
hostName = "server02";
};
imports = [./_hardware-configuration.nix];
imports = [
# ./_hardware-configuration.nix
./_disk-config.nix
];
};
}