Compare commits
3 Commits
38bed5d6d8
...
197b557468
Author | SHA1 | Date | |
---|---|---|---|
197b557468 | |||
ffc0b1472f | |||
8ef0925c01 |
@ -12,6 +12,7 @@
|
|||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
# Encryption
|
# Encryption
|
||||||
./luks.nix
|
./luks.nix
|
||||||
|
./mcserver.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
@ -21,7 +22,7 @@
|
|||||||
"/ntfs" = {
|
"/ntfs" = {
|
||||||
fsType = "ntfs-3g";
|
fsType = "ntfs-3g";
|
||||||
device = "/dev/disk/by-uuid/6AC23F0FC23EDF4F";
|
device = "/dev/disk/by-uuid/6AC23F0FC23EDF4F";
|
||||||
options = [ "auto_cache" ];
|
options = [ "auto_cache" "nofail" ];
|
||||||
};
|
};
|
||||||
"/.btrfsroot" = {
|
"/.btrfsroot" = {
|
||||||
options = [ "subvol=/" ];
|
options = [ "subvol=/" ];
|
||||||
|
@ -41,6 +41,12 @@
|
|||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
fileSystems."/srv/mcserver" =
|
||||||
|
{ device = "/dev/disk/by-uuid/7204ff85-6404-4bd7-ba0d-3fb23a5cf52c";
|
||||||
|
fsType = "btrfs";
|
||||||
|
options = [ "subvol=@mcserver" ];
|
||||||
|
};
|
||||||
|
|
||||||
swapDevices = [ ];
|
swapDevices = [ ];
|
||||||
|
|
||||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||||
|
7
hosts/nullbox/mcserver.nix
Normal file
7
hosts/nullbox/mcserver.nix
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{ pkgs, lib, config, ... }:
|
||||||
|
{
|
||||||
|
config = {
|
||||||
|
fileSystems."/srv/mcserver".options = [ "compress=zstd" "nofail" ];
|
||||||
|
networking.firewall.trustedInterfaces = [ "wg0" ];
|
||||||
|
};
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user