From 38776f0da1dbaa04230f70727830731b36672e2f Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Wed, 24 Jan 2024 18:56:14 +0300 Subject: [PATCH] Nix : Add update funs. --- .config/bash/module/Nix.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.config/bash/module/Nix.sh b/.config/bash/module/Nix.sh index 13324ab..f9667da 100644 --- a/.config/bash/module/Nix.sh +++ b/.config/bash/module/Nix.sh @@ -17,3 +17,18 @@ function nix_find() { false fi } + +# Switch to Unstable branch. +function nix_unstable() { + nix-channel --add https://nixos.org/channels/nixos-unstable nixos +} + +# Switch to Small Unstable branch (for server). +function nix_unstable_small() { + nix-channel --add https://nixos.org/channels/nixos-unstable-small nixos +} + +# Update system. +function nix_update() { + nixos-rebuild switch --upgrade +}