This commit is contained in:
Bryan Ramos 2026-03-09 20:19:53 -04:00
parent ae71471b1a
commit 1f1c7dae67
16 changed files with 164 additions and 420 deletions

View file

@ -1,16 +1,12 @@
let
dev = "/dev/disk/by-id/ata-CT2000MX500SSD1_2137E5D2D47D";
in
{ disk }:
{
disko.devices = {
disk = {
one = {
type = "disk";
device = dev;
device = disk;
content = {
type = "table";
format = "gpt";
type = "gpt";
partitions = {
boot = {
size = "1G";
@ -38,28 +34,18 @@ in
nix = {
type = "lvm_vg";
lvs = {
aaa = {
size = "1M";
};
zzz = {
size = "1M";
};
root = {
size = "252G";
size = "5%";
content = {
name = "root";
type = "filesystem";
format = "ext4";
mountpoint = "/";
mountOptions = [
"defaults"
];
mountOptions = [ "defaults" ];
};
};
home = {
size = "100%FREE";
content = {
name = "home";
type = "filesystem";
format = "ext4";
mountpoint = "/home";

View file

@ -1,11 +1,10 @@
{ disks ? [ "/dev/vda" ], ... }:
{ disk ? "/dev/vda" }:
{
disko.devices = {
disk = {
one = {
device = builtins.elemAt disks 0;
type = "disk";
device = disk;
content = {
type = "gpt";
partitions = {
@ -17,8 +16,6 @@
format = "vfat";
mountpoint = "/boot";
};
bootable = true;
priority = 1;
};
primary = {
size = "100%";
@ -36,12 +33,6 @@
vm = {
type = "lvm_vg";
lvs = {
aaa = {
size = "1M";
};
zzz = {
size = "1M";
};
root = {
size = "100%";
content = {

View file

@ -1,16 +1,12 @@
let
dev = "/dev/disk/by-id/ata-CT2000MX500SSD1_2137E5D2D47D";
in
{ disk }:
{
disko.devices = {
disk = {
one = {
type = "disk";
device = dev;
device = disk;
content = {
type = "table";
format = "gpt";
type = "gpt";
partitions = {
boot = {
size = "1G";
@ -38,28 +34,18 @@ in
nix = {
type = "lvm_vg";
lvs = {
aaa = {
size = "1M";
};
zzz = {
size = "1M";
};
root = {
size = "252G";
size = "5%";
content = {
name = "root";
type = "filesystem";
format = "ext4";
mountpoint = "/";
mountOptions = [
"defaults"
];
mountOptions = [ "defaults" ];
};
};
home = {
size = "100%FREE";
content = {
name = "home";
type = "filesystem";
format = "ext4";
mountpoint = "/home";