Skip to content

Commit

Permalink
Add external disk to tuffy-01 (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
NoRePercussions authored Dec 26, 2024
1 parent ff3f672 commit 3e0ee80
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
8 changes: 8 additions & 0 deletions hosts/tuffy-use-ora-01/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,12 @@
"/var/lib/tailscale"
];
};

environment.persistence."/big-persist" = {
hideMounts = true;
files = [
];
directories = [
];
};
}
18 changes: 18 additions & 0 deletions hosts/tuffy-use-ora-01/disks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,23 @@
};
};
};
big-persist = {
type = "disk";
device = "/dev/sdb";
content = {
type = "gpt";
partitions = {
data = {
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/big-persist";
};
};
};
};
};
};
nodev = {
"/" = {
Expand Down Expand Up @@ -96,6 +113,7 @@
fileSystems = {
"/boot".neededForBoot = true;
"/persist".neededForBoot = true;
"/big-persist".neededForBoot = true;
"/nix".neededForBoot = true;
"/".neededForBoot = true;
"/tmp".neededForBoot = true;
Expand Down

0 comments on commit 3e0ee80

Please sign in to comment.