move mc servers to lumiose
This commit is contained in:
@@ -18,8 +18,8 @@
|
|||||||
../../../modules/fileshares/holocron_new
|
../../../modules/fileshares/holocron_new
|
||||||
../../../modules/homelab
|
../../../modules/homelab
|
||||||
#../../../modules/gameservers/srcds
|
#../../../modules/gameservers/srcds
|
||||||
#../../../modules/gameservers/minecraft_recpro
|
../../../modules/gameservers/minecraft_recpro
|
||||||
#../../../modules/gameservers/minecraft_modded
|
../../../modules/gameservers/minecraft_modded
|
||||||
];
|
];
|
||||||
|
|
||||||
home-manager.users.blake.imports = [
|
home-manager.users.blake.imports = [
|
||||||
@@ -83,9 +83,10 @@
|
|||||||
nfs.enable = true;
|
nfs.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# gameservers = {
|
gameservers = {
|
||||||
# srcds.enable = true;
|
minecraft_recpro.enable = true;
|
||||||
# };
|
minecraft_modded.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
# boot (systemd is going on me)
|
# boot (systemd is going on me)
|
||||||
boot.loader.systemd-boot.enable = true; # systemd your pretty cool ya know
|
boot.loader.systemd-boot.enable = true; # systemd your pretty cool ya know
|
||||||
@@ -131,6 +132,9 @@
|
|||||||
111 # set - portmapper for nfs
|
111 # set - portmapper for nfs
|
||||||
139 # set - smb
|
139 # set - smb
|
||||||
443 # set - https
|
443 # set - https
|
||||||
|
137
|
||||||
|
138
|
||||||
|
139
|
||||||
445 # set - cifs
|
445 # set - cifs
|
||||||
1198
|
1198
|
||||||
1883 # set - mqtt
|
1883 # set - mqtt
|
||||||
|
|||||||
@@ -8,6 +8,22 @@
|
|||||||
let
|
let
|
||||||
cfg = config.holocron.smb;
|
cfg = config.holocron.smb;
|
||||||
smb_shares = {
|
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 = {
|
archives = {
|
||||||
path = "/holocron/archives";
|
path = "/holocron/archives";
|
||||||
browseable = true;
|
browseable = true;
|
||||||
@@ -18,15 +34,21 @@ let
|
|||||||
};
|
};
|
||||||
timemachine = {
|
timemachine = {
|
||||||
browseable = true;
|
browseable = true;
|
||||||
"path" = "/holocron/archives/timemachine";
|
"path" = "/holocron/timemachine";
|
||||||
"valid users" = "blake";
|
"valid users" = "blake";
|
||||||
"public" = "no";
|
"public" = "no";
|
||||||
"writeable" = "yes";
|
"writeable" = "yes";
|
||||||
"force user" = "blake";
|
"force user" = "blake";
|
||||||
# time machine specifc config
|
# time machine specifc config
|
||||||
"fruit:aapl" = "yes";
|
|
||||||
"fruit:time machine" = "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 = {
|
users = {
|
||||||
path = "/holocron/users";
|
path = "/holocron/users";
|
||||||
@@ -54,11 +76,17 @@ in {
|
|||||||
# enable smb with all shares
|
# enable smb with all shares
|
||||||
services.samba = {
|
services.samba = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
package = pkgs.sambaFull;
|
||||||
settings = smb_shares;
|
settings = smb_shares;
|
||||||
};
|
};
|
||||||
|
|
||||||
# ensure time machine can discover the share without `tmutil`
|
# ensure time machine can discover the share without `tmutil`
|
||||||
services.avahi = {
|
services.avahi = {
|
||||||
|
enable = true;
|
||||||
|
openFirewall = true;
|
||||||
|
nssmdns4 = true;
|
||||||
|
publish.enable = true;
|
||||||
|
publish.userServices = true;
|
||||||
extraServiceFiles = {
|
extraServiceFiles = {
|
||||||
timemachine = ''
|
timemachine = ''
|
||||||
<?xml version="1.0" standalone='no'?>
|
<?xml version="1.0" standalone='no'?>
|
||||||
@@ -76,6 +104,7 @@ in {
|
|||||||
</service>
|
</service>
|
||||||
<service>
|
<service>
|
||||||
<type>_adisk._tcp</type>
|
<type>_adisk._tcp</type>
|
||||||
|
<port>0</port>
|
||||||
<txt-record>dk0=adVN=timemachine,adVF=0x82</txt-record>
|
<txt-record>dk0=adVN=timemachine,adVF=0x82</txt-record>
|
||||||
<txt-record>sys=waMa=0,adVF=0x100</txt-record>
|
<txt-record>sys=waMa=0,adVF=0x100</txt-record>
|
||||||
</service>
|
</service>
|
||||||
|
|||||||
Reference in New Issue
Block a user