This commit is contained in:
2025-09-09 01:06:46 +00:00
parent bf70c50b80
commit 44b17502a0
2 changed files with 18 additions and 11 deletions

View File

@@ -15,8 +15,9 @@ in
plymouth.enable = lib.mkForce false;
initrd = {
supportedFilesystems = [ "bcachefs" ];
clevis = {
enable = true;
enable = false;
devices = {
"/dev/disk/by-label/nas_pool".secretFile = config.sops.secrets."jallen-nas/nas_pool".path;
};

View File

@@ -11,9 +11,9 @@
{
imports = [
./boot.nix
./apps.nix
# ./apps.nix
./users.nix
./services.nix
# ./services.nix
./sops.nix
];
@@ -54,7 +54,8 @@
hardware = {
disko = {
enable = true;
enableSwap = true;
enableSwap = false;
enableLuks = true;
};
nvidia = {
@@ -168,7 +169,7 @@
# ###################################################
samba = {
enable = true;
enable = false;
hostsAllow = "10.0.1.";
enableTimeMachine = true;
timeMachinePath = "/media/nas/main/timemachine";
@@ -243,12 +244,17 @@
# ###################################################
# # Mounts # #
# ###################################################
fileSystems."/media/nas/main" = {
label = "nas_pool";
# device = "/dev/sde:/dev/sdf:/dev/sdh:/dev/sdi:/dev/sdj:/dev/nmve0n1:/dev/nvme1n1";
fsType = "bcachefs";
mountPoint = "/media/nas/main";
};
# fileSystems."/media/nas/main" = {
# label = "nas_pool";
# # device = "/dev/sde:/dev/sdf:/dev/sdh:/dev/sdi:/dev/sdj:/dev/nmve0n1:/dev/nvme1n1";
# fsType = "bcachefs";
# mountPoint = "/media/nas/main";
# options = [
# "nofail"
# "x-systemd.mount-timeout=0"
# "x-systemd.device-timeout=0"
# ];
# };
# Configure environment
environment = {