No description
Find a file
Erwin Boskma 93a16c9553
Update flake.lock
• Updated input 'disko':
    'github:nix-community/disko/f0b9f374bb42fdcd57baa7d4448ac5d4788226bd' (2023-05-22)
  → 'github:nix-community/disko/0d270372b21818eba342954220c1a30a7bdaba19' (2023-05-30)
• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/6ec9045f8b81b187d0628a8986ca47e163f90285' (2023-05-28)
  → 'github:nix-community/emacs-overlay/7735f53ef8f28d80ca5339e486e29177ed7c8297' (2023-05-30)
• Updated input 'home-manager':
    'github:nix-community/home-manager/2d963854ae2499193c0c72fd67435fee34d3e4fd' (2023-05-27)
  → 'github:nix-community/home-manager/9f82227b64245c273d98dd02dedd44fc7576041e' (2023-05-30)
• Updated input 'microvm':
    'github:astro/microvm.nix/738db09b400f556bf13925f647a16d5578e377a1' (2023-05-27)
  → 'github:astro/microvm.nix/3683f43a37568fbc14bdc1c952acb41b0bb09a01' (2023-05-29)
• Updated input 'nil':
    'github:oxalica/nil/ca462183c525b5a950912f98815b7d290218f1d3' (2023-05-28)
  → 'github:oxalica/nil/0158d58d47abecd7f5f4e67c06365ff77bbedbc7' (2023-05-30)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/e10802309bf9ae351eb27002c85cfdeb1be3b262' (2023-05-27)
  → 'github:nixos/nixpkgs/5e871d8aa6f57cc8e0dc087d1c5013f6e212b4ce' (2023-05-29)
• Updated input 'pre-commit-hooks':
    'github:cachix/pre-commit-hooks.nix/61e567d6497bc9556f391faebe5e410e6623217f' (2023-05-23)
  → 'github:cachix/pre-commit-hooks.nix/ca2fdbf3edda2a38140184da6381d49f8206eaf4' (2023-05-29)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/aa1b08de9ca770534ad750dccc70cebd95c15e26' (2023-05-28)
  → 'github:oxalica/rust-overlay/9b3284e2412f76bd68ff46f8cf1c7af44d7ffac0' (2023-05-30)
• Updated input 'sops':
    'github:Mic92/sops-nix/3e016341d4dca6ce7c62316f90e66341841a30f9' (2023-05-28)
  → 'github:Mic92/sops-nix/876846cde9762ae563f018c17993354875e2538e' (2023-05-30)
2023-05-30 15:40:22 +02:00
home-manager/modules nushell: Add kink module 2023-05-30 15:35:45 +02:00
machines Updates 2023-05-30 15:36:25 +02:00
modules Updates 2023-05-30 15:36:25 +02:00
overlays Remove commitgpt 2023-05-22 10:27:21 +02:00
pkgs Remove commitgpt 2023-05-22 10:27:21 +02:00
users Fix cargo config 2023-05-28 12:51:54 +02:00
.envrc Load .env file 2023-04-24 08:25:18 +02:00
.gitignore Add terraform stuff to .gitignore 2023-01-06 01:10:48 +01:00
.projectile Update flake.lock, update kernel version 2022-03-23 15:42:32 +01:00
.sops.yaml Update frigate key 2023-03-24 14:23:50 +01:00
flake.lock Update flake.lock 2023-05-30 15:40:22 +02:00
flake.nix Remove temporary config 2023-05-28 13:21:31 +02:00
Justfile Load .env file 2023-04-24 08:25:18 +02:00
krops.nix Add pre-commit hooks and fix style issues 2022-11-19 20:00:54 +01:00
README.org Tweaks 2022-10-05 15:36:12 +02:00
statix.toml Add pre-commit hooks and fix style issues 2022-11-19 20:00:54 +01:00

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