Tested against:
- x86_64-linux
- aarch64-linux
- x86_64-darwin
- aarch64-darwin
home_directory:
- linux:
/home/$username
- mac:
/Users/$username
- Create
.env
and populate variables (see list of env keys in.enc.env
) - (Optional) If you don't want to set up commit signing, comment out the whole
git_signing_key
section. make common
- Login to
App Store
make mac
- If you need
tailscale
,caddy
,fail2ban
, ordocker
on your server, install it via your system's package manager, since nix requires you set up systemd services explicitly.
`chsh` and type `$HOME/.nix-profile/bin/fish`
# or this one
`vi /etc/passwd` and specify shell for your user
- set
tap to single click
- set
three-finger drag
make update
# equivalent to do-release-upgrade
<https://nixos.org/manual/nix/stable/installation/upgrading.html>
brew upgrade
# backup vscode extensions list
code --list-extensions | xargs -L 1 echo code --install-extension > ext_install.sh
# backup vscode config
cp "/users/$USER/Library/Application Support/Code/User/keybindings.json" .
cp "/users/$USER/Library/Application Support/Code/User/settings.json" .
https://github.com/mschwaig/howto-install-nix-with-flake-support
nix flake show templates
nix flake init -t templates#trivial
nix flake init
nix build flake.nix
https://stackoverflow.com/questions/71927395/how-is-vendorsha256-computed
with import <nixpkgs> { } ;
buildGoModule rec {
pname = "fman";
version = "1.20.1";
src = fetchFromGitHub {
owner = "nore-dev";
repo = "fman";
rev = "v${version}";
sha256 = "1111111111111111111111111111111111111111111111111111"; # 1. replace with actual value from run logs
};
vendorSha256 = lib.fakeSha256; # 2. do the same after replacing above sha
}