dotfiles
git clone https://github.com/mantas6/dots.git "$HOME/.dots"
cd "$HOME/.dots"
./bin/dot/stwIf stow fails, remove conflicting files (preferably to trash) and run again. Pay close attention to the output to make sure that the links that it creates make sense.
nix run nixpkgs#nixos-generators -- --format iso --flake #isoNormal setup:
nix run nixpkgs#nixos-anywhere -- \
--flake ".#__host__" \
--generate-hardware-config nixos-generate-config nix/hosts/__host__/hardware.nix \
--target-host "root@__host__"Encrypted setup:
nix run nixpkgs#nixos-anywhere -- \
--flake ".#__host__" \
--disk-encryption-keys /tmp/secret.key <(pass "hosts/__host__") \
--generate-hardware-config nixos-generate-config nix/hosts/"__host__"/hardware.nix \
--target-host "root@__host__"nixos-rebuild --flake .#__host__ --target-host root@__host__ switchRun when need to migrate old version of dotfiles structure
cd "$HOME/.dots"
./bin/dot/stw -D
git pull
./bin/dot/stwsudo nixos-rebuild --install-bootloader switch --flake .To initialize new environment run:
git clone https://github.com/mantas6/dots.git "$HOME/.dots"
cd "$HOME/.dots"
./bin/mac/rebuild-macos-env brewRestart the shell and run stow:
cd "$HOME/.dots"
./bin/dot/stwRun the script again to continue setup:
rebuild-macos-env initUpdate all packages:
brew bundle upgrade --globalUpdate Brewfile after setup modifications:
brew bundle dump --global --forceClean up removed packages:
brew bundle cleanup --globalRun stress test on the CPU:
nix run nixpkgs#stress-ng -- -c0Monitor temperatures:
nix run nixpkgs#s-tui