No description
Erwin Boskma
94b61c842b
Flake lock file updates: • Updated input 'disko': 'github:nix-community/disko/09a776702b004fdf9c41a024e1299d575ee18a7d?narHash=sha256-a%2BAakkb%2BamHw4biOZ0iMo8xYl37uUL48YEXIC5PYJ/8%3D' (2024-10-23) → 'github:nix-community/disko/58cd832497f9c87cb4889744b86aba4284fd0474?narHash=sha256-xzt7tb4YUw6VZXSCGw4sukirJSfYsIcFyvmhK5KMiKw%3D' (2024-10-26) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/8585c0d7f7b5efa704112bbfc6310cebacb94e69?narHash=sha256-a5CwSoNGyQAyg13i%2BWfvVREUouoBKYeqsAZAnxfqeuQ%3D' (2024-10-25) → 'github:nix-community/emacs-overlay/7f86b977ad3e397c8cf37be53a6578ec5cd109c7?narHash=sha256-nJ1V%2BEFn5OYoAdcIQpO9AT8UZjulFXYBmBSblIZoH9U%3D' (2024-10-26) • Updated input 'home-manager': 'github:nix-community/home-manager/c77c3bb23390a9ba91860e721edde54856fc5f7a?narHash=sha256-1uGIPOSJq4IzoDvgfOF6A3sw5it1WX3ZdYl2%2BjCkjv8%3D' (2024-10-25) → 'github:nix-community/home-manager/93435d27d250fa986bfec6b2ff263161ff8288cb?narHash=sha256-nL9nzNE5/re/P%2BzOv7NX6bRm5e%2BDeS1HIufQUJ01w20%3D' (2024-10-25) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/7e52e80f5faa374ad4c607d62c6d362589cb523f?narHash=sha256-RiinJqorqSLKh1oSpiMHnBe6nQdJzE45lX6fSnAuDnI%3D' (2024-10-25) → 'github:oxalica/rust-overlay/17cadbc36da05e75197d082decb382a5f4208e30?narHash=sha256-eXqxxbOagphPfjPptSlv0pQONB3fH15CQ4G8uCu1BW4%3D' (2024-10-26) • Updated input 'sops': 'github:Mic92/sops-nix/78a0e634fc8981d6b564f08b6715c69a755c4c7d?narHash=sha256-J2vtHq9sw1wWm0aTMXpEEAzsVCUMZDTEe5kiBYccpLE%3D' (2024-10-24) → 'github:Mic92/sops-nix/b2211d1a537136cc1d0d5c0af391e8712016b34e?narHash=sha256-3tjYImjVzsSM4sU%2BwTySF94Yop1spI/XomMBEpljKvQ%3D' (2024-10-26) |
||
---|---|---|
.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 |