This commit is contained in:
Philipp Hochkamp 2022-03-04 21:42:57 +01:00
parent eb5617bc08
commit 5bc3cc3184
No known key found for this signature in database
GPG key ID: 3676AB4CB36E5641
2 changed files with 23 additions and 15 deletions

View file

@ -4,6 +4,13 @@
nix.package = pkgs.nixFlakes; nix.package = pkgs.nixFlakes;
nix.buildCores = 0; # use all cores nix.buildCores = 0; # use all cores
nix.maxJobs = 10; # use all cores nix.maxJobs = 10; # use all cores
nix.distributedBuilds = true;
nix.buildMachines = [ {
systems = ["x86_64-linux"];
sshUser = "ragon";
hostName = "ds9";
}];
system.defaults = { system.defaults = {
NSGlobalDomain.AppleShowAllExtensions = true; NSGlobalDomain.AppleShowAllExtensions = true;

View file

@ -56,21 +56,22 @@ end):start()
---------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------
-- mount ds9 via tailscale -- mount ds9 via tailscale
---------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------
function mountDS9() -- kaputti
local ssid = hs.wifi.currentNetwork() --function mountDS9()
if ssid ~= nil and ssid ~= 'vim' then -- not at home -- local ssid = hs.wifi.currentNetwork()
if os.execute("mount | grep //ragon@ds9._smb._tcp.local/data") == nil then -- check if mounted via mdns -- if ssid ~= nil and ssid ~= 'vim' then -- not at home
os.execute("diskutil umount /Volumes/data") -- umount share if it exists -- if os.execute("mount | grep //ragon@ds9._smb._tcp.local/data") == nil then -- check if mounted via mdns
hs.osascript.applescript('mount volume "smb://ragon@ds9.ragon000.github.beta.tailscale.net/data"') -- mount share via tailscale -- os.execute("diskutil umount /Volumes/data") -- umount share if it exists
end -- hs.osascript.applescript('mount volume "smb://ragon@ds9.ragon000.github.beta.tailscale.net/data"') -- mount share via tailscale
end -- end
end -- end
--end
mountDS9() --
--mountDS9()
hs.wifi.watcher.new(function(watcher, message, interface) --
mountDS9() --hs.wifi.watcher.new(function(watcher, message, interface)
end):start() -- mountDS9()
--end):start()
---------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------
-- Scratchpad -- Scratchpad