So as my last post detailed getting a home server up and running, this one will detail how to get Tailscale working on it as well!
This one requires altering the channels.scm file. I will be using the Rosenthal Guix channel to obtain access to the Tailscale service.
Here’s my channels.scm file:
CODE BEGINS HERE
(list (channel
(name 'nonguix)
(url “Nonguix / nonguix · GitLab”)
(branch “master”)
(introduction
(make-channel-introduction
“897c1a470da759236cc11798f4e0a5f7d4d59fbc”
(openpgp-fingerprint
“2A39 3FFF 68F4 EF7A 3D29 12AF 6F51 20A0 22FB B2D5”))))
(channel
(name 'rosenthal)
(url “hako/Rosenthal: A certain Guix channel / 某 Guix 頻道 - Codeberg.org”)
(branch “trunk”)
(introduction
(make-channel-introduction
“7677db76330121a901604dfbad19077893865f35”
(openpgp-fingerprint
“13E7 6CD6 E649 C28C 3385 4DF5 5E5A A665 6149 17F7”))))
(channel
(name 'guix)
(url “Index of /git/guix.git/”)
(branch “master”)
(introduction
(make-channel-introduction
“9edb3f66fd807b096b48283debdcddccfea34bad”
(openpgp-fingerprint
“BBB0 2DDF 2CEA F6A8 0D1D E643 A2A0 6DF2 A33A 54FA”)))))
CODE ENDS HERE
Save the Rosenthal code block to your channels.scm file and guix pull.
Now insert the following into your system.scm file, or whatever file you use to reconfigure your Guix system. This is assuming you’re also using NonGNU as well, but if you don’t need the NonGNU packages, just erase that line in the proceeding system.scm file and the code block in the above channels.scm.
CODE BEGINS HERE
(use-modules (gnu)(nongnu packages linux)(rosenthal services networking))
(service tailscale-service-type)
CODE ENDS HERE
In order to get Tailscale working, you also need to insert (service tailscale-service-type) under your system services code statement.
After you’ve guix pull’d to gain access to the Rosenthal channel and inserted the above lines into your system.scm or whatever file and run “sudo guix system reconfigure .config/guix/system.scm”, just do the following:
run “sudo tailscale up” and follow the instructions in your browser!
More adventures to come!