No description
Find a file
Erwin Boskma bfcd44f9db
Update flake.lock
• Updated input 'disko':
    'github:nix-community/disko/241c878d4b542fea7c61ed4421e9224af054ff56' (2023-08-11)
  → 'github:nix-community/disko/6388d2859c91adab847b4922b726f61920074494' (2023-08-14)
• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/c13ae6eb68176037cc5acb03288262b69f331b03' (2023-08-11)
  → 'github:nix-community/emacs-overlay/7a4b5bbc06182e2f704630cd77a614ab0d9c2f2e' (2023-08-14)
• Updated input 'emacs-overlay/nixpkgs-stable':
    'github:NixOS/nixpkgs/9034b46dc4c7596a87ab837bb8a07ef2d887e8c7' (2023-08-09)
  → 'github:NixOS/nixpkgs/720e61ed8de116eec48d6baea1d54469b536b985' (2023-08-13)
• Updated input 'home-manager':
    'github:nix-community/home-manager/6e1eff9aac0e8d84bda7f2d60ba6108eea9b7e79' (2023-08-10)
  → 'github:nix-community/home-manager/da6874e8bb82204323b94154585a1471c739f73e' (2023-08-14)
• Updated input 'nixos-hardware':
    'github:NixOS/nixos-hardware/f61352cf8066ddd3dfe9058e62184bae7382672d' (2023-08-11)
  → 'github:NixOS/nixos-hardware/430a56dd16fe583a812b2df44dca002acab2f4f6' (2023-08-12)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e' (2023-08-10)
  → 'github:nixos/nixpkgs/100a1550b0e7a64b960c625b656f9229bdef5f87' (2023-08-13)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/ac9d8b2e9acc153145e6fa3c78f9ba458ae517bf' (2023-08-11)
  → 'github:oxalica/rust-overlay/ce646c4052c4979078a1ed263bc6e8c1a14c0d07' (2023-08-14)
• Updated input 'sops':
    'github:Mic92/sops-nix/c36df4fe4bf4bb87759b1891cab21e7a05219500' (2023-07-24)
  → 'github:Mic92/sops-nix/32603de0dc988d60a7b80774dd7aed1083cd9629' (2023-08-13)
• Updated input 'sops/nixpkgs-stable':
    'github:NixOS/nixpkgs/ce45b591975d070044ca24e3003c830d26fea1c8' (2023-07-22)
  → 'github:NixOS/nixpkgs/efeed708ece1a9f4ae0506ae4a4d7da264a74102' (2023-08-12)
2023-08-14 21:59:01 +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-14 21:59:01 +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