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" ]; + }; +}