|  | Commit message (Collapse) | Author | Age | 
|---|
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | This collects relevant information for each host in an informative
markdown file.
An example (generated via `./scripts/system_info.sh`):
    # server2
    ## Virtual Hosts
    etebase.vhack.eu: dav.vhack.eu
    gallery.s-schoeffel.de
    git.foss-syndicate.org
    invidious-router.vhack.eu: video.fosswelt.org invidious-router.sils.li
    issues.foss-syndicate.org
    libreddit.vhack.eu
    redlib.vhack.eu
    source.foss-syndicate.org
    source.vhack.eu
    ## Open ports
    TCP 22: ssh
    TCP 25: mail-smtp
    TCP 80: http
    TCP 443: https
    TCP 465: mail-smtp-tls
    TCP 993: mail-imap-tls
    TCP 995: mail-pop3-tls
    # server3
    ## Virtual Hosts
    b-peetz.de
    mastodon.vhack.eu
    matrix.vhack.eu
    miniflux.foss-syndicate.org: rss.foss-syndicate.org rss.vhack.eu miniflux.vhack.eu
    openpgpkey.b-peetz.de
    openpgpkey.s-schoeffel.de
    openpgpkey.sils.li
    openpgpkey.vhack.eu
    peertube.vhack.eu
    trinitrix.vhack.eu
    vhack.eu
    ## Open ports
    TCP 22: ssh
    TCP 80: http
    TCP 443: https
    TCP 64738: ???
    UDP 64738: ??? | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | This script is useful, when migrating from a hosted DNS server to our
own.
An example output looks like this (for `get_dns.sh b-peetz.de`):
```
(A) 92.60.38.179 [b-peetz.de]
(AAAA) 2a03:4000:33:25b::4f4e [b-peetz.de]
(CAA) 0 issue "letsencrypt.org" [b-peetz.de]
(CNAME) <Not set> [b-peetz.de]
(DNAME) <Not set> [b-peetz.de]
(MX) 10 mail.foss-syndicate.org. [b-peetz.de]
(NS) second-dns.netcup.net. [b-peetz.de]
(NS) third-dns.netcup.net. [b-peetz.de]
(NS) root-dns.netcup.net. [b-peetz.de]
(SOA) root-dns.netcup.net. dnsadmin.netcup.net. 2025012510 28800 7200 1209600 86400 [b-peetz.de]
(SRV) <Not set> [b-peetz.de]
(TXT) "v=spf1 +mx -all" [b-peetz.de]
(PTR) <Not set> [b-peetz.de]
(DNSKEY) <Not set> [b-peetz.de]
(DS) <Not set> [b-peetz.de]
(SSHFP) <Not set> [b-peetz.de]
(TLSA) <Not set> [b-peetz.de]
(OPENPGPKEY) <Not set> [b-peetz.de]
(SVCB) <Not set> [b-peetz.de]
(HTTPS) <Not set> [b-peetz.de]
(TXT) "v=DKIM1; k=rsa; t=s; s=email; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDZ0lbL3BHTuWmiRj/8ZqbEsKK/yBrhXeKDmu8Oj1IGGbQCiqxGkkrdUMzRrZD+6hH0OWjppqc4Sw/oC8ilgSzSntYzkygGjM/7uBLhWVgLjcO7ovsoF7GIldhXcQSD/3hbI0QOoMV2/w7dEZmbYsulw6b2m8FbSAHPn+RvGmwjzQIDAQAB" [mail._domainkey.b-peetz.de]
(TXT) "v=DMARC1; p=reject" [_dmarc.b-peetz.de]
``` | 
| | 
| 
| 
| | Otherwise, the experience is simply worse. | 
| | |  | 
| | |  | 
| | 
| 
| 
| 
| | This documents the commands used for the first deployment (i.e., with a
full, disko-driven, disk formatting step). | 
| | 
| 
| 
| 
| 
| 
| | This has been taken directly from `nixos-infect` (which rather
under-maintained, sadly).
Currently, it is extremely useful to generate the `networking.nix`
config for new hosts. | 
| | |  | 
| | 
| 
| 
| 
| | This functionality is now available via the `coImport` feature in the
`mkByName` `nixLib` function. | 
|  |  |