move mc servers to lumiose
This commit is contained in:
@@ -18,8 +18,8 @@
|
||||
../../../modules/fileshares/holocron_new
|
||||
../../../modules/homelab
|
||||
#../../../modules/gameservers/srcds
|
||||
#../../../modules/gameservers/minecraft_recpro
|
||||
#../../../modules/gameservers/minecraft_modded
|
||||
../../../modules/gameservers/minecraft_recpro
|
||||
../../../modules/gameservers/minecraft_modded
|
||||
];
|
||||
|
||||
home-manager.users.blake.imports = [
|
||||
@@ -83,9 +83,10 @@
|
||||
nfs.enable = true;
|
||||
};
|
||||
|
||||
# gameservers = {
|
||||
# srcds.enable = true;
|
||||
# };
|
||||
gameservers = {
|
||||
minecraft_recpro.enable = true;
|
||||
minecraft_modded.enable = true;
|
||||
};
|
||||
|
||||
# boot (systemd is going on me)
|
||||
boot.loader.systemd-boot.enable = true; # systemd your pretty cool ya know
|
||||
@@ -131,6 +132,9 @@
|
||||
111 # set - portmapper for nfs
|
||||
139 # set - smb
|
||||
443 # set - https
|
||||
137
|
||||
138
|
||||
139
|
||||
445 # set - cifs
|
||||
1198
|
||||
1883 # set - mqtt
|
||||
|
||||
@@ -8,6 +8,22 @@
|
||||
let
|
||||
cfg = config.holocron.smb;
|
||||
smb_shares = {
|
||||
global = {
|
||||
# time machine specifc config, must be global
|
||||
"fruit:aapl" = "yes";
|
||||
"fruit:nfs_aces" = "no";
|
||||
"fruit:metadata" = "stream";
|
||||
"fruit:model" = "TimeCapsule";
|
||||
"fruit:posix_rename" = "yes";
|
||||
"fruit:veto_appledouble" = "no";
|
||||
"fruit:wipe_intentionally_left_blank_rfork" = "yes";
|
||||
"fruit:delete_empty_adfiles" = "yes";
|
||||
"vfs objects" = "catia fruit streams_xattr";
|
||||
"ea support" = "yes";
|
||||
"spotlight" = "no";
|
||||
"multicast dns register" = "no";
|
||||
"min protocol" = "SMB2";
|
||||
};
|
||||
archives = {
|
||||
path = "/holocron/archives";
|
||||
browseable = true;
|
||||
@@ -18,15 +34,21 @@ let
|
||||
};
|
||||
timemachine = {
|
||||
browseable = true;
|
||||
"path" = "/holocron/archives/timemachine";
|
||||
"path" = "/holocron/timemachine";
|
||||
"valid users" = "blake";
|
||||
"public" = "no";
|
||||
"writeable" = "yes";
|
||||
"force user" = "blake";
|
||||
# time machine specifc config
|
||||
"fruit:aapl" = "yes";
|
||||
"fruit:time machine" = "yes";
|
||||
"vfs objects" = "catia fruit streams_xattr";
|
||||
"fruit:time machine max size" = "5T";
|
||||
"case sensitive" = "yes";
|
||||
"default case" = "lower";
|
||||
"preserve case" = "no";
|
||||
"short preserve case" = "no";
|
||||
"create mask" = "0660";
|
||||
"directory mask" = "0770";
|
||||
"force group" = "blake";
|
||||
};
|
||||
users = {
|
||||
path = "/holocron/users";
|
||||
@@ -54,11 +76,17 @@ in {
|
||||
# enable smb with all shares
|
||||
services.samba = {
|
||||
enable = true;
|
||||
package = pkgs.sambaFull;
|
||||
settings = smb_shares;
|
||||
};
|
||||
|
||||
# ensure time machine can discover the share without `tmutil`
|
||||
services.avahi = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
nssmdns4 = true;
|
||||
publish.enable = true;
|
||||
publish.userServices = true;
|
||||
extraServiceFiles = {
|
||||
timemachine = ''
|
||||
<?xml version="1.0" standalone='no'?>
|
||||
@@ -76,6 +104,7 @@ in {
|
||||
</service>
|
||||
<service>
|
||||
<type>_adisk._tcp</type>
|
||||
<port>0</port>
|
||||
<txt-record>dk0=adVN=timemachine,adVF=0x82</txt-record>
|
||||
<txt-record>sys=waMa=0,adVF=0x100</txt-record>
|
||||
</service>
|
||||
|
||||
Reference in New Issue
Block a user