No description
Find a file
Erwin Boskma e7fee4d3be
Update flake.lock
• Updated input 'caddy-with-plugins':
    'github:eboskma/caddy-with-plugins/8395505b17f15487e2a222dcfbb0560f10bfb590' (2023-08-09)
  → 'github:eboskma/caddy-with-plugins/f94748a89ca1a1da1ec66306f15e5a208dff92a8' (2023-08-09)
• Updated input 'disko':
    'github:nix-community/disko/4015740375676402a2ee6adebc3c30ea625b9a94' (2023-07-30)
  → 'github:nix-community/disko/32e7d56c080e1b07c5f3d3ed6063c3ec64c5a8f8' (2023-08-10)
• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/791acfa700b9f96c35635fde2a17a66b4ed88c9e' (2023-08-03)
  → 'github:nix-community/emacs-overlay/0ac7913c1f81f4b705a268a0bd462729b7c2e7ec' (2023-08-10)
• Updated input 'emacs-overlay/nixpkgs-stable':
    'github:NixOS/nixpkgs/bd836ac5e5a7358dea73cb74a013ca32864ccb86' (2023-08-01)
  → 'github:NixOS/nixpkgs/78287547942dd8e8afff0ae47fb8e2553db79d7e' (2023-08-08)
• Updated input 'home-manager':
    'github:nix-community/home-manager/86dd48d70a2e2c17e84e747ba4faa92453e68d4a' (2023-08-03)
  → 'github:nix-community/home-manager/6e1eff9aac0e8d84bda7f2d60ba6108eea9b7e79' (2023-08-10)
• Updated input 'microvm':
    'github:astro/microvm.nix/0263360417f214c1e5a585210e43d950d00bc683' (2023-08-01)
  → 'github:astro/microvm.nix/d5c5bb4cebbd9f59b7ab81a4b36fea10b6016d38' (2023-08-06)
• Updated input 'nil':
    'github:oxalica/nil/6f20ed411520aac06b456e31aab43cf10df231a2' (2023-08-02)
  → 'github:oxalica/nil/97abe7d3d48721d4e0fcc1876eea83bb4247825b' (2023-08-07)
• Updated input 'nixos-hardware':
    'github:NixOS/nixos-hardware/24f9162b26f0debd163f6d94752aa2acb9db395a' (2023-08-02)
  → 'github:NixOS/nixos-hardware/8ff521acd2c8132c62141c2990deb7406e32b335' (2023-08-09)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/ef99fa5c5ed624460217c31ac4271cfb5cb2502c' (2023-07-25)
  → 'github:nixos/nixpkgs/e528fa15d5f740a25b5f536c33932db64cb10fc8' (2023-08-09)
• Updated input 'pre-commit-hooks':
    'github:cachix/pre-commit-hooks.nix/fcbf4705d98398d084e6cb1c826a0b90a91d22d7' (2023-07-30)
  → 'github:cachix/pre-commit-hooks.nix/e5588ddffd4c3578547a86ef40ec9a6fbdae2986' (2023-08-07)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/99df4908445be37ddb2d332580365fce512a7dcf' (2023-08-03)
  → 'github:oxalica/rust-overlay/48f3d76f512c7267d82d84c5d3d156ad2b9a8d12' (2023-08-10)
2023-08-10 16:42:25 +02:00
home-manager/modules Add treesit-grammars.with-all-grammars to emacs 2023-08-03 13:08:46 +02:00
machines Consolidate configuration for mimir 2023-08-03 10:42:12 +02:00
modules Update fonts module due to upstream changes 2023-07-31 11:58:06 +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 Enable eww 2023-07-19 14:04:10 +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 Add work age key 2023-06-01 16:04:32 +02:00
flake.lock Update flake.lock 2023-08-10 16:42:25 +02:00
flake.nix Add pciutils to devshell 2023-07-19 14:07:31 +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