rename: temp_16tb -> Poup_16T throughout
- Module renamed to poup-16t-disk.nix - Option namespace: gortium.poup16t (was gortium.temp16tb) - LUKS name: poup_16t (was temp_16tb) - Mount point: /mnt/Poup_16T (was /mnt/temp_16tb) - btrbk instance: poup16t (was temp16tb) - flake.nix import and host config updated
This commit is contained in:
Submodule assets/compose updated: d3f2e3b7b9...dab158da0a
@@ -65,7 +65,7 @@
|
|||||||
./hosts/lazyworkhorse/configuration.nix
|
./hosts/lazyworkhorse/configuration.nix
|
||||||
./hosts/lazyworkhorse/hardware-configuration.nix
|
./hosts/lazyworkhorse/hardware-configuration.nix
|
||||||
./modules/nixos/filesystem/hoardingcow-mount.nix
|
./modules/nixos/filesystem/hoardingcow-mount.nix
|
||||||
./modules/nixos/filesystem/temp-16tb-disk.nix
|
./modules/nixos/filesystem/poup-16t-disk.nix
|
||||||
./modules/nixos/services/docker_manager.nix
|
./modules/nixos/services/docker_manager.nix
|
||||||
./modules/nixos/services/open_code_server.nix
|
./modules/nixos/services/open_code_server.nix
|
||||||
./modules/nixos/services/ollama_init_custom_models.nix
|
./modules/nixos/services/ollama_init_custom_models.nix
|
||||||
|
|||||||
@@ -8,10 +8,10 @@
|
|||||||
# NAS Mounting
|
# NAS Mounting
|
||||||
hoardingcow-mount.enable = true;
|
hoardingcow-mount.enable = true;
|
||||||
|
|
||||||
# 16TB btrfs storage disk (WD Red Pro — LUKS2 + btrfs + btrbk snapshots)
|
# 16TB btrfs storage disk (WD Red Pro — Poup_16T — LUKS2 + btrfs + btrbk snapshots)
|
||||||
# ⚠ SETUP REQUIRED: Connect the disk, get the LUKS UUID with 'blkid /dev/sdb',
|
# ⚠ SETUP REQUIRED: Connect the disk, get the LUKS UUID with 'blkid /dev/sdb',
|
||||||
# then set gortium.temp16tb.luksUuid here and deploy.
|
# then set gortium.poup16t.luksUuid here and deploy.
|
||||||
# gortium.temp16tb = {
|
# gortium.poup16t = {
|
||||||
# enable = true;
|
# enable = true;
|
||||||
# luksUuid = "REPLACE_ME_WITH_REAL_UUID";
|
# luksUuid = "REPLACE_ME_WITH_REAL_UUID";
|
||||||
# };
|
# };
|
||||||
|
|||||||
@@ -1,19 +1,19 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.gortium.temp16tb;
|
cfg = config.gortium.poup16t;
|
||||||
luksName = cfg.luksName;
|
luksName = cfg.luksName;
|
||||||
in
|
in
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
{
|
{
|
||||||
options.gortium.temp16tb = {
|
options.gortium.poup16t = {
|
||||||
enable = mkEnableOption "16TB temp storage disk (btrfs + LUKS + btrbk snapshots)";
|
enable = mkEnableOption "Poup_16T storage disk (btrfs + LUKS + btrbk snapshots)";
|
||||||
|
|
||||||
luksUuid = mkOption {
|
luksUuid = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
description = ''
|
description = ''
|
||||||
UUID of the LUKS partition on the 16TB disk.
|
UUID of the LUKS partition on the 16TB disk (WD Red Pro).
|
||||||
|
|
||||||
Find this by running as root when the disk is connected:
|
Find this by running as root when the disk is connected:
|
||||||
blkid /dev/sdb # or wherever the disk appears
|
blkid /dev/sdb # or wherever the disk appears
|
||||||
@@ -27,14 +27,14 @@ with lib;
|
|||||||
|
|
||||||
luksName = mkOption {
|
luksName = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
default = "temp_16tb";
|
default = "poup_16t";
|
||||||
description = "Name for the LUKS /dev/mapper/ mapping";
|
description = "Name for the LUKS /dev/mapper/ mapping";
|
||||||
};
|
};
|
||||||
|
|
||||||
mountPoint = mkOption {
|
mountPoint = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
default = "/mnt/temp_16tb";
|
default = "/mnt/Poup_16T";
|
||||||
description = "Mount point for the 16TB disk";
|
description = "Mount point for the 16TB data disk";
|
||||||
};
|
};
|
||||||
|
|
||||||
btrfsOptions = mkOption {
|
btrfsOptions = mkOption {
|
||||||
@@ -103,7 +103,7 @@ with lib;
|
|||||||
|
|
||||||
# btrbk — automated snapshot creation and rotation
|
# btrbk — automated snapshot creation and rotation
|
||||||
services.btrbk = mkIf cfg.btrbk.enable {
|
services.btrbk = mkIf cfg.btrbk.enable {
|
||||||
instances.temp16tb = {
|
instances.poup16t = {
|
||||||
onCalendar = cfg.btrbk.schedule;
|
onCalendar = cfg.btrbk.schedule;
|
||||||
settings = {
|
settings = {
|
||||||
snapshot_preserve_min = cfg.btrbk.preserveMin;
|
snapshot_preserve_min = cfg.btrbk.preserveMin;
|
||||||
Reference in New Issue
Block a user