65 lines
1.4 KiB
Nix
Executable File
65 lines
1.4 KiB
Nix
Executable File
{ lib, ... }:
|
|
let
|
|
defaultLocalOptions = [
|
|
"compress=zstd"
|
|
# "autodefrag"
|
|
"nofail"
|
|
# "x-systemd.automount"
|
|
# "auto"
|
|
"rw"
|
|
];
|
|
in
|
|
{
|
|
boot.initrd = {
|
|
supportedFilesystems = {
|
|
bcachefs = true;
|
|
};
|
|
|
|
clevis = {
|
|
enable = lib.mkForce true;
|
|
devices = {
|
|
"/dev/disk/by-uuid/2b7e2033-2bcc-4fff-b248-833289f07f3d".secretFile = ../../../secrets/hdd.jwe; # config.sops.secrets."disk-key".path;
|
|
};
|
|
};
|
|
};
|
|
|
|
fileSystems = {
|
|
"/etc".neededForBoot = true;
|
|
"/media/matt/data" = {
|
|
device = "/dev/disk/by-uuid/f851d21e-27b3-4353-aa19-590d244db6e5";
|
|
fsType = "bcachefs";
|
|
options = [
|
|
"noatime"
|
|
]
|
|
++ defaultLocalOptions;
|
|
};
|
|
"/media/matt/slow" = {
|
|
device = "/dev/disk/by-uuid/2b7e2033-2bcc-4fff-b248-833289f07f3d";
|
|
fsType = "bcachefs";
|
|
options = [
|
|
"noatime"
|
|
]
|
|
++ defaultLocalOptions;
|
|
};
|
|
|
|
# # Network shares
|
|
# "/media/nas/backup" = {
|
|
# device = "//10.0.1.3/Backup";
|
|
# fsType = "cifs";
|
|
# options = defaultNetworkShareOptions;
|
|
# };
|
|
|
|
# "/media/nas/isos" = {
|
|
# device = "//10.0.1.3/isos";
|
|
# fsType = "cifs";
|
|
# options = defaultNetworkShareOptions;
|
|
# };
|
|
|
|
# "/media/nas/3d_printer" = {
|
|
# device = "//10.0.1.3/3d_printer";
|
|
# fsType = "cifs";
|
|
# options = defaultNetworkShareOptions;
|
|
# };
|
|
};
|
|
}
|