summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
authorDominik Kaiser2025-02-15 21:03:46 +0100
committerDominik Kaiser2025-02-15 21:03:46 +0100
commit9186851cd8dd346f9187f5b57843e068d070b8e8 (patch)
tree3bd2d11acd30f584da1894313e7097faef3d82da /hosts
parent8a180e440b2a97e0e8a0293d180d8783dd7ead4f (diff)
downloadnixos-9186851cd8dd346f9187f5b57843e068d070b8e8.tar.gz
nixos-9186851cd8dd346f9187f5b57843e068d070b8e8.zip
Fix some errors on antares config
Diffstat (limited to 'hosts')
-rw-r--r--hosts/antares/disk-config.nix56
1 files changed, 56 insertions, 0 deletions
diff --git a/hosts/antares/disk-config.nix b/hosts/antares/disk-config.nix
new file mode 100644
index 0000000..88e17e5
--- /dev/null
+++ b/hosts/antares/disk-config.nix
@@ -0,0 +1,56 @@
+# Example to create a bios compatible gpt partition
+{ lib, ... }:
+{
+ disko.devices = {
+ disk.disk1 = {
+ device = lib.mkDefault "/dev/vda";
+ type = "disk";
+ content = {
+ type = "gpt";
+ partitions = {
+ boot = {
+ name = "boot";
+ size = "1M";
+ type = "EF02";
+ };
+ esp = {
+ name = "ESP";
+ size = "500M";
+ type = "EF00";
+ content = {
+ type = "filesystem";
+ format = "vfat";
+ mountpoint = "/boot";
+ };
+ };
+ root = {
+ name = "root";
+ size = "100%";
+ content = {
+ type = "lvm_pv";
+ vg = "pool";
+ };
+ };
+ };
+ };
+ };
+ lvm_vg = {
+ pool = {
+ type = "lvm_vg";
+ lvs = {
+ root = {
+ size = "100%FREE";
+ content = {
+ type = "filesystem";
+ format = "ext4";
+ mountpoint = "/";
+ mountOptions = [
+ "defaults"
+ ];
+ };
+ };
+ };
+ };
+ };
+ };
+}