From 8ef0925c01f480c8174e7c3a98c3d0f9f9efeb30 Mon Sep 17 00:00:00 2001 From: NullBite Date: Sat, 23 Mar 2024 17:06:58 -0400 Subject: [PATCH] nullbox: mount mcserver as nofail --- hosts/nullbox/configuration.nix | 1 + hosts/nullbox/hardware-configuration.nix | 6 ++++++ hosts/nullbox/mcserver.nix | 6 ++++++ 3 files changed, 13 insertions(+) create mode 100644 hosts/nullbox/mcserver.nix diff --git a/hosts/nullbox/configuration.nix b/hosts/nullbox/configuration.nix index 3f1da7a..62dd83c 100644 --- a/hosts/nullbox/configuration.nix +++ b/hosts/nullbox/configuration.nix @@ -12,6 +12,7 @@ ./hardware-configuration.nix # Encryption ./luks.nix + ./mcserver.nix ]; config = { diff --git a/hosts/nullbox/hardware-configuration.nix b/hosts/nullbox/hardware-configuration.nix index d84ff0e..57c90b6 100644 --- a/hosts/nullbox/hardware-configuration.nix +++ b/hosts/nullbox/hardware-configuration.nix @@ -41,6 +41,12 @@ fsType = "vfat"; }; + fileSystems."/srv/mcserver" = + { device = "/dev/disk/by-uuid/7204ff85-6404-4bd7-ba0d-3fb23a5cf52c"; + fsType = "btrfs"; + options = [ "subvol=@mcserver" ]; + }; + swapDevices = [ ]; # Enables DHCP on each ethernet and wireless interface. In case of scripted networking diff --git a/hosts/nullbox/mcserver.nix b/hosts/nullbox/mcserver.nix new file mode 100644 index 0000000..645aeb8 --- /dev/null +++ b/hosts/nullbox/mcserver.nix @@ -0,0 +1,6 @@ +{ pkgs, lib, config, ... }: +{ + config = { + fileSystems."/srv/mcserver".options = [ "compress=zstd" "nofail" ]; + }; +}