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