NixOS
Tailscale
services.tailscale = {
enable = true;
openFirewall = true;
authKeyFile = path-to-key;
extraUpFlags = [
"--login-server=https://your-instance" # if you use a non-default tailscale coordinator
"--accept-dns=false" # if its' a server you prolly dont need magicdns
];
};
Tidal-dl-ng Shell
nix-shell tidal.nix (or whatever you call this file)
{ pkgs ? import <nixpkgs> {} }:
let
pythonEnv = pkgs.python3.withPackages (ps: with ps; [
pip
]);
in
pkgs.mkShell {
name = "tidal-dl-ng-shell";
buildInputs = [
pythonEnv
pkgs.ffmpeg
];
shellHook = ''
python -m venv .venv
source .venv/bin/activate
echo "🎵 Tidal-dl-ng environment ready."
pip install python-ffmpeg
pip install tidal-dl-ng
echo "Ready to rock. Available command: tidal-dl-ng"
'';
}
Take Screenshot of Remote Machine
nix-shell -p xorg.xwd imagemagick --run 'sudo DISPLAY=:0 XAUTHORITY=/run/lightdm/root/:0 xwd -root -silent | magick xwd:- /tmp/screen.png'