mirror of
https://github.com/morten-olsen/nixos-config.git
synced 2026-02-08 00:36:27 +01:00
8 lines
125 B
Bash
Executable File
8 lines
125 B
Bash
Executable File
name=$1
|
|
|
|
if [ -z "$name" ]; then
|
|
sudo nixos-rebuild switch --flake .
|
|
else
|
|
sudo nixos-rebuild switch --flake ".#$name"
|
|
fi
|