Skip to content

Commit

Permalink
fix 🐛: root vi megumin
Browse files Browse the repository at this point in the history
Signed-off-by: Victor Hang <[email protected]>
  • Loading branch information
Banh-Canh committed Feb 5, 2025
1 parent c9edc5c commit aa4c7a3
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 32 deletions.
47 changes: 47 additions & 0 deletions installer/partitions/root.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
disk ? "/dev/nvme0n1",
}:
{
disko.devices = {
disk.main = {
type = "disk";
device = disk;
content = {
type = "gpt";
partitions = {
MBR = {
size = "1M";
type = "EF02";
priority = 1;
};
primary = {
size = "100%";
content = {
type = "lvm_pv";
vg = "vg1";
};
};
};
};
};
lvm_vg = {
vg1 = {
type = "lvm_vg";
lvs = {
root = {
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
extraArgs = [
"-L"
"ROOT"
];
};
};
};
};
};
};
}
16 changes: 0 additions & 16 deletions profiles/megumin/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,22 +38,6 @@ in
device = "/dev/disk/by-label/ROOT";
fsType = "ext4";
};
"/tmp" = {
device = "/dev/disk/by-label/TMP";
fsType = "ext4";
};
"/var" = {
device = "/dev/disk/by-label/VAR";
fsType = "ext4";
};
"/var/lib/containerd" = {
device = "/dev/disk/by-label/VARLIBCONTAINERD";
fsType = "ext4";
};
"/nix" = {
device = "/dev/disk/by-label/NIX";
fsType = "ext4";
};
};
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
Expand Down
16 changes: 0 additions & 16 deletions profiles/vi/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,22 +38,6 @@ in
device = "/dev/disk/by-label/ROOT";
fsType = "ext4";
};
"/tmp" = {
device = "/dev/disk/by-label/TMP";
fsType = "ext4";
};
"/var" = {
device = "/dev/disk/by-label/VAR";
fsType = "ext4";
};
"/var/lib/containerd" = {
device = "/dev/disk/by-label/VARLIBCONTAINERD";
fsType = "ext4";
};
"/nix" = {
device = "/dev/disk/by-label/NIX";
fsType = "ext4";
};
};
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
Expand Down

0 comments on commit aa4c7a3

Please sign in to comment.