diff options
Diffstat (limited to '')
| -rw-r--r-- | notes/beets_import.md | 20 | ||||
| -rw-r--r-- | notes/deploy.md | 35 |
2 files changed, 35 insertions, 20 deletions
diff --git a/notes/beets_import.md b/notes/beets_import.md deleted file mode 100644 index 6725192e..00000000 --- a/notes/beets_import.md +++ /dev/null @@ -1,20 +0,0 @@ -<!-- -nixos-config - My current NixOS configuration - -Copyright (C) 2025 Benedikt Peetz <benedikt.peetz@b-peetz.de> -SPDX-License-Identifier: GPL-3.0-or-later - -This file is part of my nixos-config. - -You should have received a copy of the License along with this program. -If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. ---> - -# How to import an artist into beets - -1. Download said artist (`deerix`) -1. Remove the useless/bad albums of the downloaded artist -1. Check for name duplicates (`./find_duplicates`) -1. Import (`beet import <artist>`) -1. Remove duplicated files (`beet duplicates artist:<artist>`) -1. Search for canonical name duplicates (`beet list artist:<artist> <leftover name>`) diff --git a/notes/deploy.md b/notes/deploy.md new file mode 100644 index 00000000..fa6384f6 --- /dev/null +++ b/notes/deploy.md @@ -0,0 +1,35 @@ +# How to deploy a new host + +1. Boot the minimal nixos-iso and get an ssh shell +1. Perform disk configuration via disko: +```bash +export NIX_CONFIG="experimental-features = nix-command flakes" +nix shell nixpkgs#lix + +sudo --preserve-env=NIX_CONFIG nix run github:nix-community/disko/latest -- --mode destroy,format,mount --flake git+https://git.foss-syndicate.org/bpeetz/nixos-config?ref=prime#apzu + +sudo git clone https://git.foss-syndicate.org/bpeetz/nixos-config /mnt/etc/nixos/ + +sudo nixos-generate-config --root /mnt +sudo nixos-install + +sudo nixos-enter +export NIX_CONFIG="experimental-features = nix-command flakes" +nix shell nixpkgs#lix + +nix shell nixpkgs#git nixpkgs#nvd + +git config --global --add safe.directory /etc/nixos +cd /etc/nixos + +./scripts/build.sh apzu +``` + +```bash +nix run github:nix-community/nixos-anywhere -- \ + --flake "git+https://git.foss-syndicate.org/bpeetz/nixos-config?ref=prime#apzu" \ + --target-host "root@nixos.fritz.box" \ + --build-on local \ + --disko-mode disko \ + --extra-files /tmp/apzu_root +``` |
