No description
Erwin Boskma
5a49f4b74d
Flake lock file updates: • Updated input 'disko': 'github:nix-community/disko/944d338d24a9d043a3f7461c30ee6cfe4f9cca30' (2023-10-27) → 'github:nix-community/disko/548962c50b8afad7b8c820c1d6e21dc8394d6e65' (2023-11-04) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/8f964138749616526f0d2792e05e06aa5d509741' (2023-11-03) → 'github:nix-community/emacs-overlay/a9375fdc81c04aa20f197c195720de179360b4f5' (2023-11-06) • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/34bdaaf1f0b7fb6d9091472edc968ff10a8c2857' (2023-11-01) → 'github:NixOS/nixpkgs/aeefe2054617cae501809b82b44a8e8f7be7cc4b' (2023-11-05) • Updated input 'home-manager': 'github:nix-community/home-manager/48b0a30202516e25d9885525fbb200a045f23f26' (2023-11-01) → 'github:nix-community/home-manager/c067d57fc4552835987fd7611c3a6741ee32ebd5' (2023-11-06) • Updated input 'microvm': 'github:astro/microvm.nix/d07c3efd42a93d576da2ba6569818b6edb0cbe18' (2023-11-02) → 'github:astro/microvm.nix/4caeec0f24d416ce19c76754cae572f1e1882ffe' (2023-11-05) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/11d50c5d52472ed40d3cb109daad03c836d2b328' (2023-11-01) → 'github:NixOS/nixos-hardware/627bc9b88256379578885a7028c9e791c29fb581' (2023-11-05) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/fa804edfb7869c9fb230e174182a8a1a7e512c40' (2023-11-02) → 'github:nixos/nixpkgs/85f1ba3e51676fa8cc604a3d863d729026a6b8eb' (2023-11-04) • Updated input 'pre-commit-hooks': 'github:cachix/pre-commit-hooks.nix/dec10399e5b56aa95fcd530e0338be72ad6462a0' (2023-11-01) → 'github:cachix/pre-commit-hooks.nix/ea758da1a6dcde6dc36db348ed690d09b9864128' (2023-11-06) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/321affd863e3e4e669990a1db5fdabef98387b95' (2023-11-03) → 'github:oxalica/rust-overlay/a7f9bf91dc5065d470cd57169a9f2ebdbdfe1f24' (2023-11-06) • Updated input 'sops': 'github:Mic92/sops-nix/84d6b27dc71ac02422e192c35806d06915d2bf67' (2023-11-02) → 'github:Mic92/sops-nix/664187539871f63857bda2d498f452792457b998' (2023-11-06) • Updated input 'sops/nixpkgs-stable': 'github:NixOS/nixpkgs/d87c5d8c41c9b3b39592563242f3a448b5cc4bc9' (2023-10-29) → 'github:NixOS/nixpkgs/78f3a4ae19f0e99d5323dd2e3853916b8ee4afee' (2023-11-04) |
||
---|---|---|
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 |