No description
Erwin Boskma
7a81878dd7
Flake lock file updates: • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/4887992a11388734b4900f3d16892999b54849ff?narHash=sha256-qOUGh%2BhC6w9POe04HTjwcKJccjmKsGfmlWEL32NTlr0%3D' (2024-10-24) → 'github:nix-community/emacs-overlay/8585c0d7f7b5efa704112bbfc6310cebacb94e69?narHash=sha256-a5CwSoNGyQAyg13i%2BWfvVREUouoBKYeqsAZAnxfqeuQ%3D' (2024-10-25) • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/89172919243df199fe237ba0f776c3e3e3d72367?narHash=sha256-Gf04dXB0n4q0A9G5nTGH3zuMGr6jtJppqdeljxua1fo%3D' (2024-10-20) → 'github:NixOS/nixpkgs/32e940c7c420600ef0d1ef396dc63b04ee9cad37?narHash=sha256-BAuPWW%2B9fa1moZTU%2BjFh%2B1cUtmsuF8asgzFwejM4wac%3D' (2024-10-23) • Updated input 'home-manager': 'github:nix-community/home-manager/5ec753a1fc4454df9285d8b3ec0809234defb975?narHash=sha256-7LAGY32Xl14OVQp3y6M43/0AtHYYvV6pdyBcp3eoz0s%3D' (2024-10-21) → 'github:nix-community/home-manager/c77c3bb23390a9ba91860e721edde54856fc5f7a?narHash=sha256-1uGIPOSJq4IzoDvgfOF6A3sw5it1WX3ZdYl2%2BjCkjv8%3D' (2024-10-25) • Updated input 'microvm': 'github:astro/microvm.nix/21c36d162ba8127377ce7dee234bdc99b9af0dde?narHash=sha256-tQOYDfaoetPZSi56dej5zCsSsxPhmV%2BvWxuW3vWeg60%3D' (2024-10-23) → 'github:astro/microvm.nix/ef42cfface9940b9ce9614307670b60cdbda33f6?narHash=sha256-ndjFy5kfhn9MoOOSzGnZ7f2FwRUUY1EJYwXGxK8DzsQ%3D' (2024-10-23) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/29b1275740d9283467b8117499ec8cbb35250584?narHash=sha256-Rb6JUop7NRklg0uzcre%2BA%2BEbrn/ZiQPkm4QdKg6/3pw%3D' (2024-10-24) → 'github:oxalica/rust-overlay/7e52e80f5faa374ad4c607d62c6d362589cb523f?narHash=sha256-RiinJqorqSLKh1oSpiMHnBe6nQdJzE45lX6fSnAuDnI%3D' (2024-10-25) • Updated input 'sops': 'github:Mic92/sops-nix/d089e742fb79259b9c4dd9f18e9de1dd4fa3c1ec?narHash=sha256-Fm4cGAlaDwekQvYX0e6t0VjT6YJs3fRXtkyuE4/NzzU%3D' (2024-10-23) → 'github:Mic92/sops-nix/78a0e634fc8981d6b564f08b6715c69a755c4c7d?narHash=sha256-J2vtHq9sw1wWm0aTMXpEEAzsVCUMZDTEe5kiBYccpLE%3D' (2024-10-24) |
||
---|---|---|
.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 | ||
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 |