mirror of https://gitlab.com/curben/blog
post(nixos): switch 'magic-wormhole' to 'wormhole-william'
This commit is contained in:
parent
c5badae866
commit
c2d9914916
|
@ -104,12 +104,12 @@ nixos-generate-config --root /mnt
|
|||
|
||||
``` sh
|
||||
# This is much less memory-intensive than `nix-env -i package`
|
||||
# ffsend (unofficial CLI client of Firefox Send) is a good alternative to magic-wormhole,
|
||||
# but it has a long URL so it's only usable in ssh where you can copy-paste.
|
||||
nix-env -f '<nixpkgs>' -iA magic-wormhole p7zip
|
||||
# wormhole-william is Go-implementation of magic-wormhole
|
||||
# Available in 20.09+
|
||||
nix-env -f '<nixpkgs>' -iA google-authenticator p7zip usbguard wormhole-william
|
||||
|
||||
cd /tmp
|
||||
wormhole receive configuration.7z
|
||||
wormhole-william receive configuration.7z
|
||||
7z x configuration.7z
|
||||
|
||||
cp configuration.nix /mnt/etc/nixos/
|
||||
|
@ -153,9 +153,14 @@ Following is my "configuration.nix". I'll show you how to secure NixOS using has
|
|||
networking.interfaces.ens3.useDHCP = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
dnsutils usbguard magic-wormhole p7zip google-authenticator
|
||||
dnsutils p7zip wormhole-william
|
||||
];
|
||||
|
||||
# Save some typing
|
||||
environment.shellAliases = {
|
||||
wormhole = "wormhole-william";
|
||||
};
|
||||
|
||||
time.timeZone = "UTC";
|
||||
|
||||
## Create service users
|
||||
|
|
|
@ -26,12 +26,10 @@ Following diagram shows the architecture behind this website.
|
|||
|
||||
## Prerequisites
|
||||
|
||||
Before proceeding to the rest of this guide, there are some system packages that you need to install. Add the packages to `environment.systemPackages` option in "configuration.nix" and run `# nixos-rebuild switch` to install them.
|
||||
Before proceeding to the rest of this guide, there are some system packages that you need to install.
|
||||
|
||||
```
|
||||
environment.systemPackages = with pkgs; [
|
||||
dnsutils usbguard magic-wormhole p7zip google-authenticator
|
||||
];
|
||||
$ nix-env -f '<nixpkgs>' -iA google-authenticator p7zip usbguard wormhole-william
|
||||
```
|
||||
|
||||
## Disable mutableUsers
|
||||
|
|
Loading…
Reference in New Issue