Перейти к основному содержимому
Категории ai career dao links media notes philosophy security systems web
  1. Гисты/

nixos

·90 слов·1 минута· loading · loading · · ·
Оглавление

nixos

nixos
#

#!/bin/sh --verbose

nix-collect-garbage  -d
nix-store --gc
nix-store --verify --check-contents --repair
nix-store --optimise

chattr -R +c /

btrfs device scan --all-devices
for filesystem in $(mount -t btrfs | awk '{print $3}' )
do
    mount -o remount,clear_cache,compress=zlib,rw $filesystem
    btrfs property set $filesystem compression zlib
    btrfs filesystem resize max $filesystem
    btrfs filesystem sync $filesystem
done



btrfs scrub start -BdRf /
btrfs fi def -czlib -v -r -f /
btrfs balance start -v -f --full-balance -dconvert=single,usage=99 -mconvert=single,usage=99 -sconvert=single,usage=99 /

bedup dedup
fdupes -r -S / | duperemove --fdupes
duperemove -drh /*