No description
Erwin Boskma
b757a7fca7
Flake lock file updates: • Updated input 'anyrun': 'github:anyrun-org/anyrun/d2017f224b2bfd7e33573c7070e7c3e2960c7dcc?narHash=sha256-L1hLXf4IDZ0KoXbFiSNNZJ7IrReEr/J%2BCLt6Rl4Ea3M%3D' (2024-11-08) → 'github:anyrun-org/anyrun/7f40aaa02f71974e4eba19ca42a6b60969bbde09?narHash=sha256-xx19bEgwZDnNddm8svJnIrt1MWH1FfDbBJh0%2BPBNZL8%3D' (2024-12-26) • Updated input 'ghostty': 'git+https://git.datarift.nl/erwin/ghostty.git?ref=main&rev=e2eacabbf849fcae9509840e8225b7ee423daacc' (2024-12-12) → 'github:ghostty-org/ghostty/4b4d4062dfed7b37424c7210d1230242c709e990?narHash=sha256-AHI1Z4mfgXkNwQA8xYq4tS0/BARbHL7gQUT41vCxQTM%3D' (2024-12-26) • Updated input 'ghostty/nixpkgs-unstable': 'github:nixos/nixpkgs/566e53c2ad750c84f6d31f9ccb9d00f823165550?narHash=sha256-FLYY5M0rpa5C2QAE3CKLYAM6TwbKicdRK6qNrSHlNrE%3D' (2024-12-03) → follows 'nixpkgs' |
||
---|---|---|
.forgejo/workflows | ||
home-manager/modules | ||
incus-conf | ||
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 |