No description
Erwin Boskma
ad1ab5e1a0
• Updated input 'disko': 'github:nix-community/disko/e1eba38e8ea3ee6ca8ffef57668d4a37fff19ca4' (2023-01-19) → 'github:nix-community/disko/825be2b6275b0b2f1556873acba5b8bea6dd7e4d' (2023-01-23) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/ad839f83ca7ceb0f5f0b301da847366ecf57ef49' (2023-01-20) → 'github:nix-community/emacs-overlay/908646b952e01a03b292cdda646e81b5ced87aa9' (2023-01-23) • Updated input 'home-manager': 'github:nix-community/home-manager/7026e1a934abfa02623c9870378dbcdac3cd7f80' (2023-01-18) → 'github:nix-community/home-manager/275ab728912006eecb549338a50f24f294a7cfb7' (2023-01-20) • Updated input 'hyprland': 'github:Hyprwm/Hyprland/5112056fdbda989191310364444f328240bbf6f1' (2023-01-19) → 'github:Hyprwm/Hyprland/cb98242ea7faff04dad3ae166aff7126184f17c5' (2023-01-22) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/6dccdc458512abce8d19f74195bb20fdb067df50' (2023-01-15) → 'github:nixos/nixpkgs/5ed481943351e9fd354aeb557679624224de38d5' (2023-01-20) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/bf982fcabe4f1c62fb99094ee06af8cade0fe399' (2023-01-20) → 'github:oxalica/rust-overlay/57b363f390f031b8b8d26235c2d21b0ad5a84640' (2023-01-23) • Updated input 'sops': 'github:Mic92/sops-nix/e18eefd2b133a58309475298052c341c08470717' (2023-01-15) → 'github:Mic92/sops-nix/51fdbd2d6fc2a7ba318e823a12609276bcc4dbe9' (2023-01-22) • Updated input 'sops/nixpkgs-stable': 'github:NixOS/nixpkgs/7c65528c3f8462b902e09d1ccca23bb9034665c2' (2023-01-15) → 'github:NixOS/nixpkgs/918b760070bb8f48cb511300fcd7e02e13058a2e' (2023-01-22) |
||
---|---|---|
home-manager/modules | ||
machines | ||
modules | ||
overlays | ||
pkgs | ||
users | ||
.envrc | ||
.gitignore | ||
.projectile | ||
.sops.yaml | ||
flake.lock | ||
flake.nix | ||
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 exa 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 |