No description
Erwin Boskma
f80d8796f7
Flake lock file updates: • Updated input 'disko': 'github:nix-community/disko/8c5d52db5690c72406b0cb13a5ac8554a287c93a' (2023-10-24) → 'github:nix-community/disko/944d338d24a9d043a3f7461c30ee6cfe4f9cca30' (2023-10-27) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/ad98977084414cf12564f5cc45b8f9aef217aafa' (2023-10-27) → 'github:nix-community/emacs-overlay/238d4cd5adee2a5dd893e27f0cf7e5af856d576e' (2023-10-30) • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/60b9db998f71ea49e1a9c41824d09aa274be1344' (2023-10-26) → 'github:NixOS/nixpkgs/1a3c95e3b23b3cdb26750621c08cc2f1560cb883' (2023-10-27) • Updated input 'flake-parts': 'github:hercules-ci/flake-parts/c9afaba3dfa4085dbd2ccb38dfade5141e33d9d4' (2023-10-03) → 'github:hercules-ci/flake-parts/f76e870d64779109e41370848074ac4eaa1606ec' (2023-10-29) • Updated input 'home-manager': 'github:nix-community/home-manager/09587fbbc6a669f7725613e044c2577dc5d43ab5' (2023-10-25) → 'github:nix-community/home-manager/8e5416b478e465985eec274bc3a018024435c106' (2023-10-30) • Updated input 'microvm': 'github:astro/microvm.nix/cd3a9cd0fcd30b55b9950ddcaec2d5271c0b78df' (2023-10-18) → 'github:astro/microvm.nix/dfe2d3db94e4829e317f97e3a095d6fd8b91f30c' (2023-10-28) • Updated input 'naersk': 'github:nix-community/naersk/06a99941d72e2202ed62b8aa08b9869817fea56f' (2023-10-24) → 'github:nix-community/naersk/aeb58d5e8faead8980a807c840232697982d47b9' (2023-10-27) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/8efd5d1e283604f75a808a20e6cde0ef313d07d4' (2023-10-24) → 'github:nixos/nixpkgs/0cbe9f69c234a7700596e943bfae7ef27a31b735' (2023-10-29) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/683fc51ea4e3282e856b215afd830ac9b39e5c7a' (2023-10-27) → 'github:oxalica/rust-overlay/ec19bd20af08f3b004089cc12ab54c823ed899b7' (2023-10-31) • Updated input 'sops': 'github:Mic92/sops-nix/014e44d334a39481223a5d163530d4c4ca2e75cb' (2023-10-25) → 'github:Mic92/sops-nix/632c3161a6cc24142c8e3f5529f5d81042571165' (2023-10-29) • Updated input 'sops/nixpkgs-stable': 'github:NixOS/nixpkgs/fb000224952bf7749a9e8b3779104ef7ea4465c8' (2023-10-21) → 'github:NixOS/nixpkgs/d87c5d8c41c9b3b39592563242f3a448b5cc4bc9' (2023-10-29) |
||
---|---|---|
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 |