mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-07 05:27:13 -06:00
chore: switched storage drive from raid0 to raid1
This commit is contained in:
parent
1a62fd7463
commit
857f2e39a8
3 changed files with 10 additions and 34 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue