From 0895834cff697220992b2038faa965bb7f5a1a02 Mon Sep 17 00:00:00 2001 From: ringofstorms Date: Sun, 7 Apr 2024 12:35:01 -0500 Subject: [PATCH] update to store gc command --- hosts/_common/configuration.nix | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/hosts/_common/configuration.nix b/hosts/_common/configuration.nix index 975e1a1..358330d 100644 --- a/hosts/_common/configuration.nix +++ b/hosts/_common/configuration.nix @@ -63,7 +63,7 @@ in nn = "nvim --headless '+SessionDelete' +qa > /dev/null 2>&1 && nvim"; bat = "bat --theme Coldark-Dark"; cat = "bat --pager=never -p"; - nix-boot-clean = "find '/boot/loader/entries' -type f ! -name 'windows.conf' | head -n -4 | xargs -I {} rm {}; nix-collect-garbage -d; nixos-rebuild boot; echo; df"; + nix-boot-clean = "find '/boot/loader/entries' -type f ! -name 'windows.conf' | head -n -4 | xargs -I {} rm {}; nix store gc; nixos-rebuild boot; echo; df"; # general unix date_compact = "date +'%Y%m%d'"; @@ -87,6 +87,20 @@ in # ripgrep rg = "rg --no-ignore"; rgf = "rg --files 2>/dev/null | rg"; + + # Nix related + nix-hash = "echo 'The functionality of nix-hash may be covered by various subcommands or options in the new `nix` command.'"; + nix-build = "echo 'Use `nix build` instead.'"; + nix-info = "echo 'Use `nix flake info` or other `nix` subcommands to obtain system and Nix information.'"; + nix-channel = "echo 'Channels are being phased out in favor of flakes. Use `nix flake` subcommands.'"; + nix-instantiate = "echo 'Use `nix eval` or `nix-instantiate` with flakes.'"; + nix-collect-garbage = "echo 'Use `nix store gc` instead.'"; + nix-prefetch-url = "echo 'Use `nix-prefetch` or fetchers in Nix expressions.'"; + nix-copy-closure = "echo 'Use `nix copy` instead.'"; + nix-shell = "echo 'Use `nix shell` instead.'"; + # nix-daemon # No direct replacement: The Nix daemon is still in use and managed by the system service manager. + nix-store = "echo 'Use `nix store` subcommands for store operations.'"; + nix-env = "echo 'Use `nix profile` instead'"; }; environment.shellInit = builtins.readFile ./shellInit.sh;