No description
Erwin Boskma
39b79325a5
Flake lock file updates: • Updated input 'atuin': 'github:atuinsh/atuin/c0d2c961773056eda6a76e5526586a11155180c2?narHash=sha256-3r4TTmI9/c9f088Mgajd6SQyfl7fZvbmOskidyxoihg%3D' (2024-06-10) → 'github:atuinsh/atuin/55a2fe50f70a5dc7d4a9ee5e1d6ffc213c74291b?narHash=sha256-eHTd7rasshvqnNNjfmB1A0rBchZfiF3M8vSorPuy/u0%3D' (2024-06-10) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/e618bb81b46a182758c649c734294f55d73e05bc?narHash=sha256-UdQqYGtvFfovH1PfsNWIuzEXxqpeqILCXIoJIhC3Q9M%3D' (2024-06-10) → 'github:nix-community/emacs-overlay/d2404a42ad3ae9c5ee5c481b7c7a4c91627d161f?narHash=sha256-Ud33Yz5o2OJ9mjH5rhbrdR%2Bpolxq9QyOLLNbtQ63s4E%3D' (2024-06-11) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/051f920625ab5aabe37c920346e3e69d7d34400e?narHash=sha256-4q0s6m0GUcN7q%2BY2DqD27iLvbcd1G50T2lv08kKxkSI%3D' (2024-06-07) → 'github:nixos/nixpkgs/c7b821ba2e1e635ba5a76d299af62821cbcb09f3?narHash=sha256-GTO3C88%2B5DX171F/gVS3Qga/hOs/eRMxPFpiHq2t%2BD8%3D' (2024-06-09) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/abfe5b3126b1b7e9e4daafc1c6478d17f0b584e7?narHash=sha256-24h/qKp0aeI%2BEw13WdRF521kY24PYa5HOvw0mlrABjk%3D' (2024-06-10) → 'github:oxalica/rust-overlay/bedc47af18fc41bb7d2edc2b212d59ca36253f59?narHash=sha256-p33h73iQ1HkLalCplV5MH0oP3HXRaH3zufnFqb5//ps%3D' (2024-06-11) • Updated input 'sops': 'github:Mic92/sops-nix/f0922ad001829b400f0160ba85b47d252fa3d925?narHash=sha256-OQTjaEZcByyVmHwJlKp/8SE9ikC4w%2BmFd3X0jJs6wiA%3D' (2024-06-09) → 'github:Mic92/sops-nix/d071c74a7de1e26d211b69b6fbae37ae2e31a87f?narHash=sha256-d5jLlAwVi4NzT9yc5UrPiOpDxTRhu8GGh0IIfeFcdrM%3D' (2024-06-10) |
||
---|---|---|
.forgejo/workflows | ||
home-manager/modules | ||
lib | ||
machines | ||
modules | ||
overlays | ||
pkgs | ||
users | ||
wallpapers | ||
.dir-locals.el | ||
.envrc | ||
.gitattributes | ||
.gitignore | ||
.projectile | ||
.sops.yaml | ||
flake.lock | ||
flake.nix | ||
Justfile | ||
krops.nix | ||
README.org | ||
statix.toml |
Erwin's NixOS config
This configures my machines.
Useful oneliners
Remove all files except the smallest
$ ls -s size | head -n 1 | xargs stat -c %s | awk '{print $1 + 1}' | xargs -I '%S' fd -S +%Sb -X rm {} \;
cmd | Explanation |
---|---|
ls -s size |
List all files, sort by size (ls is aliased to eza in my setup) |
head -n 1 |
Take the first line |
xargs stat -c %s |
Print the size in bytes |
awk '{print $1 + 1} |
Add one to it |
xargs -I '%S' fd -S +%Sb -X rm {} \; |
Find all files larger than the smallest and delete them |