No description
Erwin Boskma
ab0b285c44
Flake lock file updates: • Updated input 'disko': 'github:nix-community/disko/325e1f7f2e0eea44c27e5e8a3946c2461ec095f2' (2023-10-16) → 'github:nix-community/disko/a3283f0e5cba07dc1f6795a6ee71bf3a23b3fc53' (2023-10-23) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/82b81829dd689bbc397ead6615c1f1f212acb80d' (2023-10-18) → 'github:nix-community/emacs-overlay/c7f417665786766e56d773f4d5ba4e6bc4998744' (2023-10-23) • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/898cb2064b6e98b8c5499f37e81adbdf2925f7c5' (2023-10-13) → 'github:NixOS/nixpkgs/5550a85a087c04ddcace7f892b0bdc9d8bb080c8' (2023-10-21) • Updated input 'home-manager': 'github:nix-community/home-manager/05649393ac1f34980a5cf6a6e89de77626c9182b' (2023-10-18) → 'github:nix-community/home-manager/219d268a69512ff520fe8da1739ac22d95d52355' (2023-10-22) • Updated input 'microvm': 'github:astro/microvm.nix/08f6052918b559ed5c7d1145d94a9a0c53b147a2' (2023-10-16) → 'github:astro/microvm.nix/cd3a9cd0fcd30b55b9950ddcaec2d5271c0b78df' (2023-10-18) • Updated input 'naersk': 'github:nix-community/naersk/3f976d822b7b37fc6fb8e6f157c2dd05e7e94e89' (2023-09-07) → 'github:nix-community/naersk/636a9b5dd7f2ad7d7c3af929ecf95e4d4fab9e97' (2023-10-18) • Updated input 'nil': 'github:oxalica/nil/73eeaa64d847f9db42e6d4f7bc80ca04011933a5' (2023-10-16) → 'github:oxalica/nil/bd93024db616a528473a7210d2756c7118155de9' (2023-10-19) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/fb6af288f6cf0f00d3af60cf9d5110433b954565' (2023-10-12) → 'github:NixOS/nixos-hardware/72d53d51704295f1645d20384cd13aecc182f624' (2023-10-19) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/ca012a02bf8327be9e488546faecae5e05d7d749' (2023-10-16) → 'github:nixos/nixpkgs/7c9cc5a6e5d38010801741ac830a3f8fd667a7a0' (2023-10-19) • Updated input 'pre-commit-hooks': 'github:cachix/pre-commit-hooks.nix/42e1b6095ef80a51f79595d9951eb38e91c4e6ca' (2023-10-09) → 'github:cachix/pre-commit-hooks.nix/8cc349bfd082da8782b989cad2158c9ad5bd70fd' (2023-10-19) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/a2ccfb2134622b28668a274e403ba6f075ae1223' (2023-10-18) → 'github:oxalica/rust-overlay/a3e829c06eadf848f13d109c7648570ce37ebccd' (2023-10-22) • Updated input 'sops': 'github:Mic92/sops-nix/51186b8012068c417dac7c31fb12861726577898' (2023-10-15) → 'github:Mic92/sops-nix/30a0ba4a20703b4bfe047fe5def1fc24978e322c' (2023-10-22) • Updated input 'sops/nixpkgs-stable': 'github:NixOS/nixpkgs/0e1cff585c1a85aeab059d3109f66134a8f76935' (2023-10-15) → 'github:NixOS/nixpkgs/fb000224952bf7749a9e8b3779104ef7ea4465c8' (2023-10-21) |
||
---|---|---|
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 |