dotfiles/rebuild-ubuntu.sh
2023-01-03 00:32:32 -05:00

8 lines
235 B
Bash
Executable File

#!/bin/bash
NIX_PATH=nixpkgs=/nix/var/nix/profiles/per-user/tyrel/channels/nixpkgs:/nix/var/nix/profiles/per-user/tyrel/channels
hostname=$(hostname)
nix run ./hosts/$hostname switch -vv
home-manager switch --flake ./hosts/$hostname