No description
Erwin Boskma
c3d92854f7
Flake lock file updates: • Updated input 'disko': 'github:nix-community/disko/3c41ae36ff12afbada9396c7d8282c2c74f74e06' (2023-10-12) → 'github:nix-community/disko/6ad5c9c17cbd5514ce0cc2692dd82dd6d8e5d879' (2023-10-13) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/7722972664332248a4240cd40f6e55994ef1ddfa' (2023-10-12) → 'github:nix-community/emacs-overlay/fa2c99af244d425c43ef768cec348c995a98a1a5' (2023-10-14) • Updated input 'ha-now-playing': 'git+https://git.datarift.nl/erwin/ha-now-playing.git?ref=main&rev=8f1b9b7f9c10bdf0992547910821357038e2ec85' (2023-09-29) → 'git+https://git.datarift.nl/erwin/ha-now-playing.git?ref=main&rev=171c65e613914d00f52c326a3c375ee954daec45' (2023-10-14) • Updated input 'ha-now-playing/crane': 'github:ipetkov/crane/3de322e06fc88ada5e3589dc8a375b73e749f512' (2023-09-23) → 'github:ipetkov/crane/117ac48319c0dbcff5540781c7c5b18166e33f6a' (2023-10-13) • Updated input 'ha-now-playing/crane/flake-compat': 'github:edolstra/flake-compat/35bb57c0c8d8b62bbfd284272c928ceb64ddbde9' (2023-01-17) → 'github:edolstra/flake-compat/4f910c9827911b1ec2bf26b5a062cd09f8d89f85' (2023-10-02) • Updated input 'microvm': 'github:astro/microvm.nix/2c28afc481d47c551ab71d96130d938cdde59933' (2023-10-10) → 'github:astro/microvm.nix/38e15eee892e1866f483467de51025dbef473306' (2023-10-12) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/d6b554a85caac840430a822aae963c811e9c7e26' (2023-10-11) → 'github:NixOS/nixos-hardware/fb6af288f6cf0f00d3af60cf9d5110433b954565' (2023-10-12) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/f99e5f03cc0aa231ab5950a15ed02afec45ed51a' (2023-10-09) → 'github:nixos/nixpkgs/5e4c2ada4fcd54b99d56d7bd62f384511a7e2593' (2023-10-11) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/aa7584f5bbf5947716ad8ec14eccc0334f0d28f0' (2023-10-12) → 'github:oxalica/rust-overlay/dce60ca7fca201014868c08a612edb73a998310f' (2023-10-14) |
||
---|---|---|
home-manager/modules | ||
lib | ||
machines | ||
modules | ||
overlays | ||
pkgs | ||
users | ||
wallpapers | ||
.envrc | ||
.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 |