No description
Erwin Boskma
d1bcd86fc6
Flake lock file updates: • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/238d4cd5adee2a5dd893e27f0cf7e5af856d576e' (2023-10-30) → 'github:nix-community/emacs-overlay/8f964138749616526f0d2792e05e06aa5d509741' (2023-11-03) • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/1a3c95e3b23b3cdb26750621c08cc2f1560cb883' (2023-10-27) → 'github:NixOS/nixpkgs/34bdaaf1f0b7fb6d9091472edc968ff10a8c2857' (2023-11-01) • Updated input 'flake-parts': 'github:hercules-ci/flake-parts/f76e870d64779109e41370848074ac4eaa1606ec' (2023-10-29) → 'github:hercules-ci/flake-parts/8c9fa2545007b49a5db5f650ae91f227672c3877' (2023-11-01) • Updated input 'flake-parts/nixpkgs-lib': 'github:NixOS/nixpkgs/f5892ddac112a1e9b3612c39af1b72987ee5783a?dir=lib' (2023-09-29) → 'github:NixOS/nixpkgs/0cbe9f69c234a7700596e943bfae7ef27a31b735?dir=lib' (2023-10-29) • Updated input 'home-manager': 'github:nix-community/home-manager/8e5416b478e465985eec274bc3a018024435c106' (2023-10-30) → 'github:nix-community/home-manager/48b0a30202516e25d9885525fbb200a045f23f26' (2023-11-01) • Updated input 'microvm': 'github:astro/microvm.nix/dfe2d3db94e4829e317f97e3a095d6fd8b91f30c' (2023-10-28) → 'github:astro/microvm.nix/d07c3efd42a93d576da2ba6569818b6edb0cbe18' (2023-11-02) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/80d98a7d55c6e27954a166cb583a41325e9512d7' (2023-10-23) → 'github:NixOS/nixos-hardware/11d50c5d52472ed40d3cb109daad03c836d2b328' (2023-11-01) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/0cbe9f69c234a7700596e943bfae7ef27a31b735' (2023-10-29) → 'github:nixos/nixpkgs/fa804edfb7869c9fb230e174182a8a1a7e512c40' (2023-11-02) • Updated input 'pre-commit-hooks': 'github:cachix/pre-commit-hooks.nix/bd38df3d508dfcdff52cd243d297f218ed2257bf' (2023-10-25) → 'github:cachix/pre-commit-hooks.nix/dec10399e5b56aa95fcd530e0338be72ad6462a0' (2023-11-01) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/ec19bd20af08f3b004089cc12ab54c823ed899b7' (2023-10-31) → 'github:oxalica/rust-overlay/321affd863e3e4e669990a1db5fdabef98387b95' (2023-11-03) • Updated input 'sops': 'github:Mic92/sops-nix/632c3161a6cc24142c8e3f5529f5d81042571165' (2023-10-29) → 'github:Mic92/sops-nix/84d6b27dc71ac02422e192c35806d06915d2bf67' (2023-11-02) |
||
---|---|---|
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 |