Migrate containers + services to NVME

This commit is contained in:
♥ Minnie ♥ 2024-06-03 21:13:38 +08:00
parent 49b4ae20a8
commit 1265ae017d
Signed by: jasmine
GPG key ID: 8563E358D4E8040E

View file

@ -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";