2021-08-09 12:19:21 +00:00
|
|
|
# Show these options
|
|
|
|
default:
|
|
|
|
@just --list --list-heading $'Update NixOS config:\n'
|
|
|
|
|
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
|