From b06f459e9a2da4facb42e2680d30e26bae0d37d8 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 23 Nov 2025 08:45:51 -0800 Subject: simplify the configuration --- README.md | 40 ---------------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 README.md (limited to 'README.md') diff --git a/README.md b/README.md deleted file mode 100644 index 7398ad6..0000000 --- a/README.md +++ /dev/null @@ -1,40 +0,0 @@ -Tools, scripts, and configurations for my machines. - -## Steps for a new Darwin machine - -Start by installing nix, using [nix-installer](https://github.com/DeterminateSystems/nix-installer) from [DeterminateSystems](https://determinate.systems). - -```sh -curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install -``` - -Next, we need to install [homebrew](https://brew.sh): -```sh -/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" -``` - -Finally, we need a [GitHub personal access token](https://github.com/settings/personal-access-tokens). Create one with an expiration time, and renew it when ever it's about to expire (we will get an email about this). The token needs to be stored in `~/.config/nix/nix.conf`: - -``` -access-tokens = github.com=**** -``` - -Now you can build the configuration (remember, the host name is in lower case) : -```sh -nix run nix-darwin -- switch --flake . -``` - -Finally, switch the default shell via `chsh`, and set it to `/run/current-system/sw/bin/fish`. - -Best to reboot to complete the installation. - -## Steps for a new droplet on DigitalOcean - -Start by creating a droplet using Debian. Create a new host configuration. - -Once the droplet is provisioned, we can use `nixos-anywhere` to convert the droplet to a NixOS installation. -```sh -nix run github:nix-community/nixos-anywhere -- --flake .# --target-host root@ -``` - -Once the host reboots, check that it's converted to NixOS by running `uname -a`. -- cgit v1.2.3