No description
Find a file
Erwin Boskma 4e798dbb3e
Update flake.lock
• Updated input 'disko':
    'github:nix-community/disko/6388d2859c91adab847b4922b726f61920074494' (2023-08-14)
  → 'github:nix-community/disko/4eed2457b053c4bbad7d90d2b3a1d539c2c9009c' (2023-08-16)
• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/7a4b5bbc06182e2f704630cd77a614ab0d9c2f2e' (2023-08-14)
  → 'github:nix-community/emacs-overlay/3751467118141bafb77a277a6f2626332ab33154' (2023-08-16)
• Updated input 'emacs-overlay/nixpkgs-stable':
    'github:NixOS/nixpkgs/720e61ed8de116eec48d6baea1d54469b536b985' (2023-08-13)
  → 'github:NixOS/nixpkgs/bfd953b2c6de4f550f75461bcc5768b6f966be10' (2023-08-15)
• Updated input 'eww':
    'github:elkowar/eww/dc3129aee2806823bdad87785f7ef80651d5245c' (2023-07-29)
  → 'github:elkowar/eww/9d0b667deadf9e64d3b692274275d57a61c107c5' (2023-08-16)
• Updated input 'home-manager':
    'github:nix-community/home-manager/da6874e8bb82204323b94154585a1471c739f73e' (2023-08-14)
  → 'github:nix-community/home-manager/2471d965a3522025157a790fc49c3567fd56e26e' (2023-08-16)
• Updated input 'naersk':
    'github:nix-community/naersk/d9a33d69a9c421d64c8d925428864e93be895dcc' (2023-07-26)
  → 'github:nix-community/naersk/275010712ce41dff66634f9910bc1f085239b370' (2023-08-16)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/100a1550b0e7a64b960c625b656f9229bdef5f87' (2023-08-13)
  → 'github:nixos/nixpkgs/caac0eb6bdcad0b32cb2522e03e4002c8975c62e' (2023-08-16)
• Updated input 'pre-commit-hooks':
    'github:cachix/pre-commit-hooks.nix/c5ac3aa3324bd8aebe8622a3fc92eeb3975d317a' (2023-08-11)
  → 'github:cachix/pre-commit-hooks.nix/3e3d45c1f26e212abe24188ece996871d94618d8' (2023-08-16)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/ce646c4052c4979078a1ed263bc6e8c1a14c0d07' (2023-08-14)
  → 'github:oxalica/rust-overlay/dea24da3d3be23ab53ee80314474afd5fcb03c1c' (2023-08-16)
• Updated input 'sops':
    'github:Mic92/sops-nix/32603de0dc988d60a7b80774dd7aed1083cd9629' (2023-08-13)
  → 'github:Mic92/sops-nix/f81e73cf9a4ef4b949b9225be3daa1e586c096da' (2023-08-15)
2023-08-17 00:54:16 +02:00
home-manager/modules sway: Use correct emacs package 2023-08-10 16:45:22 +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 Disable waybar and super-slicer 2023-08-10 16:47:43 +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-17 00:54:16 +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