chore: switched storage drive from raid0 to raid1

This commit is contained in:
Nick 2025-12-04 01:04:41 -06:00
parent 1a62fd7463
commit 857f2e39a8
3 changed files with 10 additions and 34 deletions

View file

@ -6,31 +6,10 @@
}:
let
inherit (flake.config.people) user0;
inherit (flake.config.machines.devices) eris;
erisSecrets = config.sops.secrets."network/server".path;
rootDevice = "/dev/disk/by-label/root";
bootDevice = "/dev/disk/by-label/BOOT";
sambaDrives = [
"samba0"
];
sambaFolders = [
"raid0"
];
sambaMounts = sambaDrive: folder: {
name = "${eris.${sambaDrive}.mount}/${folder}";
value = {
device = "${eris.${sambaDrive}.device}/${folder}";
fsType = "cifs";
options = eris.${sambaDrive}.options ++ [
"credentials=${erisSecrets}"
];
};
};
in
{
fileSystems = {
@ -77,10 +56,7 @@ in
neededForBoot = true;
};
}
// (builtins.listToAttrs (
builtins.concatMap (drive: map (folder: sambaMounts drive folder) sambaFolders) sambaDrives
));
};
boot.initrd.postResumeCommands = lib.mkAfter ''
mkdir /btrfs_tmp