服务器的网络至少要能顺畅地访问 Nix Cache(https://cache.nixos.org), 大部分用作代理的(中国境外的)服务器通常都没有问题。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# nftables-apply -- a safer way to update nftables remotely | |
# | |
# Usage: | |
# nftables-apply [-hV] [-t timeout] [-w savefile] {[rulesfile]|-c [runcmd]} | |
# | |
# Versions: | |
# * 1.0 Copyright 2006 Martin F. Krafft <[email protected]> | |
# Original version | |
# * 1.1 Copyright 2010 GW <[email protected] or http://gw.tnode.com/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
has_command() { | |
local _command=$1 | |
type -P "$_command" > /dev/null 2>&1 | |
} |
OlderNewer