aboutsummaryrefslogtreecommitdiff
path: root/profiles/disk/basic-vm.nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2025-10-24 09:02:29 -0700
committerFranck Cuny <franck@fcuny.net>2025-10-24 09:02:29 -0700
commite55b8ee0f7073b46fb343a97ee744a95ec40d2ed (patch)
tree329c992647f1c420cbf87cec4cca206474f98b39 /profiles/disk/basic-vm.nix
parentmove a few more things back as profiles (diff)
downloadinfra-e55b8ee0f7073b46fb343a97ee744a95ec40d2ed.tar.gz
simplify hosts management
Diffstat (limited to 'profiles/disk/basic-vm.nix')
-rw-r--r--profiles/disk/basic-vm.nix54
1 files changed, 54 insertions, 0 deletions
diff --git a/profiles/disk/basic-vm.nix b/profiles/disk/basic-vm.nix
new file mode 100644
index 0000000..f3d9f33
--- /dev/null
+++ b/profiles/disk/basic-vm.nix
@@ -0,0 +1,54 @@
+{ ... }:
+{
+ disko.devices = {
+ disk.disk1 = {
+ 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"
+ ];
+ };
+ };
+ };
+ };
+ };
+ };
+}