2021-08-09 12:19:21 +00:00
|
|
|
# Show these options
|
|
|
|
default:
|
|
|
|
@just --list --list-heading $'Update NixOS config:\n'
|
|
|
|
|
2022-01-22 20:58:20 +00:00
|
|
|
# Bootstrap from nothing
|
|
|
|
bootstrap:
|
|
|
|
sudo nix-channel --add https://nixos.org/channels/nixos-unstable
|
|
|
|
sudo nix-channel --add https://nixos.org/channels/nixpkgs-unstable
|
|
|
|
sudo nix-channel --update
|
|
|
|
sudo nixos-rebuild switch -I nixos-config=./configuration.nix
|
|
|
|
|
|
|
|
# Use intended software channels
|
2022-01-15 15:14:12 +00:00
|
|
|
channels:
|
|
|
|
doas nix-channel --add https://nixos.org/channels/nixos-unstable
|
|
|
|
doas nix-channel --add https://nixos.org/channels/nixpkgs-unstable
|
|
|
|
doas nix-channel --update
|
2021-11-24 03:19:19 +00:00
|
|
|
|
2021-08-09 12:19:21 +00:00
|
|
|
# Update the system
|
|
|
|
system:
|
2022-01-15 15:14:12 +00:00
|
|
|
doas nixos-rebuild switch -I nixos-config=./configuration.nix
|
2021-08-09 12:19:21 +00:00
|
|
|
|
|
|
|
# Update the user environment
|
|
|
|
home:
|
|
|
|
home-manager switch -f ./home.nix
|