disks
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ ... }:
|
||||
{ lib, ... }:
|
||||
let
|
||||
defaultLocalOptions = [
|
||||
"compress=zstd"
|
||||
@@ -10,6 +10,19 @@ let
|
||||
];
|
||||
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" = {
|
||||
@@ -20,6 +33,14 @@ in
|
||||
]
|
||||
++ defaultLocalOptions;
|
||||
};
|
||||
"/media/matt/slow" = {
|
||||
device = "/dev/disk/by-uuid/2b7e2033-2bcc-4fff-b248-833289f07f3d";
|
||||
fsType = "bcachefs";
|
||||
options = [
|
||||
"noatime"
|
||||
]
|
||||
++ defaultLocalOptions;
|
||||
};
|
||||
|
||||
# # Network shares
|
||||
# "/media/nas/backup" = {
|
||||
|
||||
Reference in New Issue
Block a user