Migrate containers + services to NVME
This commit is contained in:
parent
49b4ae20a8
commit
1265ae017d
|
@ -1,5 +1,7 @@
|
||||||
{ config, lib, ... }:
|
{ config, lib, ... }:
|
||||||
|
let
|
||||||
|
hostname = config.networking.hostName;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../common/optional/ephemeral-btrfs.nix
|
../common/optional/ephemeral-btrfs.nix
|
||||||
|
@ -30,11 +32,17 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/srv/containers" = {
|
fileSystems."/srv/containers" = {
|
||||||
device = "/dev/disk/by-label/data";
|
device = "/dev/disk/by-label/${hostname}";
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
options = [ "subvol=containers" "compress=zstd" ];
|
options = [ "subvol=containers" "compress=zstd" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
fileSystems."/srv/services" = {
|
||||||
|
device = "/dev/disk/by-label/${hostname}";
|
||||||
|
fsType = "btrfs";
|
||||||
|
options = [ "subvol=services" "compress=zstd" ];
|
||||||
|
};
|
||||||
|
|
||||||
fileSystems."/srv/shares" = {
|
fileSystems."/srv/shares" = {
|
||||||
device = "/dev/disk/by-label/data";
|
device = "/dev/disk/by-label/data";
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
|
|
Loading…
Reference in a new issue