No description
Erwin Boskma
f5e956be5c
Flake lock file updates: • Updated input 'atuin': 'github:atuinsh/atuin/50a73f055288d72eeeb128233e2a04bc88a5d5e8?narHash=sha256-lPAdHkIQBydROJ2e6t0nFP9X220GQ4sEwb5lFQBGYb0%3D' (2024-04-15) → 'github:atuinsh/atuin/a0231a70950fbec9dcc3403e37066d891d1fc833?narHash=sha256-TTQ2XLqng7TMLnRsLDb/50yyHYuMSPZJ4H%2B7CEFWQQ0%3D' (2024-04-15) • Updated input 'disko': 'github:nix-community/disko/bb5ba68ebb73b5ca7996b64e1457fe885891e78e?narHash=sha256-k1aV06cotPwWO3FW%2Bho%2BdEoGjxNM303%2BUmhiG2o6XPs%3D' (2024-04-15) → 'github:nix-community/disko/d51114dc1bf3cfaba2b6644aabd16ff0c9909af5?narHash=sha256-5yyHYBWFZUKXkJvOccPBeX83hH2iED54NLnWs2eWgS0%3D' (2024-04-15) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/1b01966ee01008bcec18702ea5e543b93236ecef?narHash=sha256-7tpbjpUI7YDpxP0ciM9bWBxzAT3jsZP9l8EGWFQVBmU%3D' (2024-04-15) → 'github:nix-community/emacs-overlay/cf218237d0d80f1ec8109677ebc82ded2ca84c43?narHash=sha256-6qPfZsYW3BvyJq%2BBahgygLdFd5bdqrFue8QGat4lSQo%3D' (2024-04-15) • Updated input 'microvm': 'github:astro/microvm.nix/ee0068ca87bdabbde3cc39b7af807c0302d0304c?narHash=sha256-CNdpLnGOUZfIhBanAFVF7t1xstaQGL4w6sQPrVeLlus%3D' (2024-04-09) → 'github:astro/microvm.nix/a1341f7195e34d9bb88c12314cc3b0c4429f9b0a?narHash=sha256-c/yG/AsPmMBMe4RAxn4KOkOaR4rsW5s3AjtfriOQKD8%3D' (2024-04-15) • Updated input 'sops': 'github:Mic92/sops-nix/226062b47fe0e2130ba3ee9f4f1c880dc815cf87?narHash=sha256-ZaefFyvt5369XdjzSw43NhfbPM9MN5b9YXhzx4lFIRc%3D' (2024-04-14) → 'github:Mic92/sops-nix/cc535d07cbcdd562bcca418e475c7b1959cefa4b?narHash=sha256-APoDs2GtzVrsE%2BZ9w72qpHzEtEDfuinWcNTN7zhwLxg%3D' (2024-04-15) |
||
---|---|---|
.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 |