Update common.nix
This commit is contained in:
parent
de4b6d86a8
commit
2ddf7ec35b
1 changed files with 10 additions and 4 deletions
10
common.nix
10
common.nix
|
|
@ -26,8 +26,14 @@ networking.networkmanager.enable = true;
|
||||||
|
|
||||||
# Shell aliases
|
# Shell aliases
|
||||||
environment.shellAliases = {
|
environment.shellAliases = {
|
||||||
# NEW Flake-based command
|
update = ''
|
||||||
update = "sudo nixos-rebuild switch --flake .#FredOS-Gaming";
|
if ! nix-channel --list | grep -q "nixos.*nixos-unstable"; then
|
||||||
|
echo "Switching to nixos-unstable channel..."
|
||||||
|
sudo nix-channel --add https://nixos.org/channels/nixos-unstable nixos
|
||||||
|
sudo nix-channel --update
|
||||||
|
fi
|
||||||
|
sudo nixos-rebuild switch --upgrade --option tarball-ttl 0
|
||||||
|
'';
|
||||||
clean = "sudo nix-collect-garbage -d";
|
clean = "sudo nix-collect-garbage -d";
|
||||||
ll = "ls -alh";
|
ll = "ls -alh";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue