keep kde connect info on impermanence, test out power settings

This commit is contained in:
RingOfStorms (Joshua Bell) 2025-11-30 01:10:18 -06:00
parent 48c3c5c253
commit d15d2ab4b3
4 changed files with 39 additions and 1 deletions

29
utilities/impermanence.md Normal file
View file

@ -0,0 +1,29 @@
# Impermanence
## Look at file changes from last root
```sh
sudo mkdir -p /btrfs-top
sudo mount -o subvolid=5 /dev/mapper/cryptroot /btrfs-top
LATEST_SNAPSHOT=$(sudo ls -t /btrfs-top/old_roots/ | head -n 1)
SNAPSHOT_PATH="/btrfs-top/old_roots/$LATEST_SNAPSHOT"
echo "Comparing against snapshot: $SNAPSHOT_PATH"
# Option A: rsync
sudo rsync -rcai --delete --dry-run \
--exclude='/@*' \
--exclude='/nix' \
--exclude='/proc' \
--exclude='/sys' \
--exclude='/dev' \
--exclude='/tmp' \
--exclude='/boot' \
--exclude='/persist' \
--exclude='/.snapshots' \
--exclude='/.swap' \
/var/lib/ $SNAPSHOT_PATH/var/lib/
# Option B: diff (Can be very noisy, but effective)
sudo diff -qr /var/lib $SNAPSHOT_PATH/var/lib
```

View file

@ -58,6 +58,7 @@
./hardware-configuration.nix
./impermanence.nix
./test.nix
(
{
config,

View file

@ -14,7 +14,7 @@
"/etc/NetworkManager/system-connections"
"/var/lib/bluetooth"
"/var/lib/fail2ban"
];
files = [
"/etc/machine-id"
@ -28,6 +28,9 @@
".local/share/atuin"
".local/share/zoxide"
# KDE connect specific
".config/kdeconnect"
];
files = [

View file

@ -0,0 +1,5 @@
{
powerMangement.enable = true;
# powerManagement.powertop.enable = true;
powerMangement.cpuFreqGovernor = "performance";
}