No description
Find a file
Erwin Boskma 4ff5d29915
Update flake.lock
• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/3751467118141bafb77a277a6f2626332ab33154' (2023-08-16)
  → 'github:nix-community/emacs-overlay/5df91433bba7fecf9394c2e07f3f53b357c4f63a' (2023-08-19)
• Updated input 'emacs-overlay/nixpkgs-stable':
    'github:NixOS/nixpkgs/bfd953b2c6de4f550f75461bcc5768b6f966be10' (2023-08-15)
  → 'github:NixOS/nixpkgs/ae521bd4e460b076a455dca8b13f4151489a725c' (2023-08-18)
• Updated input 'eww':
    'github:elkowar/eww/9d0b667deadf9e64d3b692274275d57a61c107c5' (2023-08-16)
  → 'github:elkowar/eww/a9a35c1804d72ef92e04ee71555bd9e5a08fa17e' (2023-08-18)
• Updated input 'home-manager':
    'github:nix-community/home-manager/2471d965a3522025157a790fc49c3567fd56e26e' (2023-08-16)
  → 'github:nix-community/home-manager/bdb5bcad01ff7332fdcf4b128211e81905113f84' (2023-08-19)
• Updated input 'microvm':
    'github:astro/microvm.nix/d5c5bb4cebbd9f59b7ab81a4b36fea10b6016d38' (2023-08-06)
  → 'github:astro/microvm.nix/a291d324915f26d1fd86443bd486089099e8b541' (2023-08-17)
• Updated input 'naersk':
    'github:nix-community/naersk/275010712ce41dff66634f9910bc1f085239b370' (2023-08-16)
  → 'github:nix-community/naersk/78789c30d64dea2396c9da516bbcc8db3a475207' (2023-08-18)
• Updated input 'nixos-hardware':
    'github:NixOS/nixos-hardware/430a56dd16fe583a812b2df44dca002acab2f4f6' (2023-08-12)
  → 'github:NixOS/nixos-hardware/7f1836531b126cfcf584e7d7d71bf8758bb58969' (2023-08-18)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/caac0eb6bdcad0b32cb2522e03e4002c8975c62e' (2023-08-16)
  → 'github:nixos/nixpkgs/8ecc900b2f695d74dea35a92f8a9f9b32c8ea33d' (2023-08-18)
• Updated input 'pre-commit-hooks':
    'github:cachix/pre-commit-hooks.nix/3e3d45c1f26e212abe24188ece996871d94618d8' (2023-08-16)
  → 'github:cachix/pre-commit-hooks.nix/7e3517c03d46159fdbf8c0e5c97f82d5d4b0c8fa' (2023-08-17)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/dea24da3d3be23ab53ee80314474afd5fcb03c1c' (2023-08-16)
  → 'github:oxalica/rust-overlay/598b2f04ed252eb5808b108d7a10084c0c548753' (2023-08-19)
2023-08-19 19:37:18 +02:00
home-manager/modules Switch to elementary GTK theme and icons 2023-08-19 19:36:31 +02:00
machines Remove unused files 2023-08-10 16:45:36 +02:00
modules Use caddy as proxy in place of nginx-proxy-manager 2023-08-10 16:43:46 +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 Switch to elementary GTK theme and icons 2023-08-19 19:36:31 +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 Use caddy as proxy in place of nginx-proxy-manager 2023-08-10 16:43:46 +02:00
flake.lock Update flake.lock 2023-08-19 19:37:18 +02:00
flake.nix Use caddy as proxy in place of nginx-proxy-manager 2023-08-10 16:43:46 +02:00
Justfile Add boot recipe to Justfile 2023-07-03 09:26:40 +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