aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-01-12 08:45:53 -0300
committerEuAndreh <eu@euandre.org>2024-01-12 08:45:53 -0300
commit3b2d27457db9ef8911893fa1b843560f1ccab2eb (patch)
treef2912096f65014593c44b88bd129743e4337f58b /bin
parentetc/sh/rc: Use "\" as a shortcut in vi(1) for saving a file (diff)
downloaddotfiles-3b2d27457db9ef8911893fa1b843560f1ccab2eb.tar.gz
dotfiles-3b2d27457db9ef8911893fa1b843560f1ccab2eb.tar.xz
Remove Nix/NixOS support from configuration and utilities
Diffstat (limited to 'bin')
-rwxr-xr-xbin/gc21
-rwxr-xr-xbin/reconfigure7
-rwxr-xr-xbin/update9
3 files changed, 0 insertions, 37 deletions
diff --git a/bin/gc b/bin/gc
index 0b3b9d4..e1762e9 100755
--- a/bin/gc
+++ b/bin/gc
@@ -18,7 +18,6 @@ help() {
TYPE what to do GC on (default: all):
- guix
- - nix
- trash
- tmpdir
- docker
@@ -93,25 +92,6 @@ gc_guix() {
fi
}
-gc_nix() {
- if [ ! -e /nix/ ]; then
- return
- fi
-
- PROFILES='
- /nix/var/nix/profiles/per-user/root/channels
- /nix/var/nix/profiles/system
- '
-
- for p in $PROFILES; do
- pass show "$(hostname)"/andreh | head -n1 |
- sudo -iS nix-env --delete-generations old -p "$p"
- done
- nix-env --delete-generations old
- nix-store --gc
- nix-collect-garbage -d
-}
-
gc_trash() {
yes | trash-empty
}
@@ -137,7 +117,6 @@ gc_docker() {
TYPES='
guix
-nix
trash
tmpdir
docker
diff --git a/bin/reconfigure b/bin/reconfigure
index 8e81855..58ed772 100755
--- a/bin/reconfigure
+++ b/bin/reconfigure
@@ -21,7 +21,6 @@ help() {
Switches the system:
- reconfigure the Guix "home" environment;
- Guix "system" if it exists;
- - NixOS if it exists.
Examples:
@@ -94,12 +93,6 @@ if [ -e /run/current-system/configuration.scm ]; then
sudo -ES guix system -v3 reconfigure "$XDG_CONFIG_HOME"/guix/system.scm
fi
-if [ -e /etc/nixos/configuration.nix ]; then
- pass show "$HOSTNAME"/andreh |
- head -n1 |
- sudo -S nixos-rebuild switch
-fi
-
guix home -v3 reconfigure "$XDG_CONFIG_HOME"/guix/home.scm
bins > /dev/null
diff --git a/bin/update b/bin/update
index d5e45f0..8189329 100755
--- a/bin/update
+++ b/bin/update
@@ -64,15 +64,6 @@ done
shift $((OPTIND - 1))
-HOSTNAME="$(hostname)"
-if [ -e /etc/nixos/configuration.nix ]; then
- pass show "$HOSTNAME"/andreh |
- head -n1 |
- sudo -S nix-channel --update
-else
- nix-channel --update
-fi
-
guix pull -v3
rfc -u