No description
Find a file
Erwin Boskma 4443991e3c
flake.lock: Update
Flake lock file updates:

• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/ea9cd7c22194345e4db85e334b8ff40cc384c536' (2023-12-08)
  → 'github:nix-community/emacs-overlay/5075b8df3d8d4d28e73e921acb46a2cf7f34ad28' (2023-12-11)
• Updated input 'emacs-overlay/nixpkgs-stable':
    'github:NixOS/nixpkgs/e9f06adb793d1cca5384907b3b8a4071d5d7cb19' (2023-12-03)
  → 'github:NixOS/nixpkgs/0561103cedb11e7554cf34cea81e5f5d578a4753' (2023-12-05)
• Updated input 'eww':
    'github:elkowar/eww/a9a35c1804d72ef92e04ee71555bd9e5a08fa17e' (2023-08-18)
  → 'github:elkowar/eww/fff40ce1a78d4d75bf63a8ee33dd7d9be8dc289e' (2023-12-11)
• Updated input 'home-manager':
    'github:nix-community/home-manager/ac7216918cd65f3824ba7817dea8f22e61221eaf' (2023-12-04)
  → 'github:nix-community/home-manager/defbb9c5857e157703e8fc7cf3c2ceb01cb95883' (2023-12-10)
• Updated input 'microvm':
    'github:astro/microvm.nix/89bb7a5230a4820736a43e058c8d2a2c560d672b' (2023-11-28)
  → 'github:astro/microvm.nix/252d7153e6faab321f012d9a0c6e290f888b8d0f' (2023-12-11)
• Updated input 'nixos-hardware':
    'github:NixOS/nixos-hardware/fa194fc484fd7270ab324bb985593f71102e84d1' (2023-12-04)
  → 'github:NixOS/nixos-hardware/030edbb68e69f2b97231479f98a9597024650df2' (2023-12-10)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/2c7f3c0fb7c08a0814627611d9d7d45ab6d75335' (2023-12-04)
  → 'github:nixos/nixpkgs/666fc80e7b2afb570462423cb0e1cf1a3a34fedd' (2023-12-09)
• Updated input 'pre-commit-hooks':
    'github:cachix/pre-commit-hooks.nix/e5ee5c5f3844550c01d2131096c7271cec5e9b78' (2023-11-25)
  → 'github:cachix/pre-commit-hooks.nix/f99ed8523fc3aef67a7c838ca31f4b94ef902837' (2023-12-11)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/c2a1dd067a928624c1aab36f976758c0722c79bd' (2023-12-08)
  → 'github:oxalica/rust-overlay/d3c43c05ef3cd66ddab4a5a82a7df71e40496aa5' (2023-12-11)
• Updated input 'sops':
    'github:Mic92/sops-nix/e91ece6d2cf5a0ae729796b8f0dedceab5107c3d' (2023-12-04)
  → 'github:Mic92/sops-nix/d806e546f96c88cd9f7d91c1c19ebc99ba6277d9' (2023-12-10)
• Updated input 'sops/nixpkgs-stable':
    'github:NixOS/nixpkgs/dc01248a9c946953ad4d438b0a626f5c987a93e4' (2023-12-03)
  → 'github:NixOS/nixpkgs/b8f33c044e51de6dde3ad80a9676945e0e4e3227' (2023-12-09)
2023-12-11 16:01:55 +01:00
home-manager/modules Replace jq with jaq where possible 2023-11-30 08:59:16 +01:00
lib Initial refactoring 2023-10-14 16:55:13 +02:00
machines Add nix-ld-rs 2023-12-08 16:39:57 +01:00
modules greetd: Make input and output configurable 2023-11-30 11:50:10 +01:00
overlays emacs: Set font according to screen DPI 2023-11-14 14:44:16 +01:00
pkgs emacs: Set font according to screen DPI 2023-11-14 14:44:16 +01:00
users work: Add livebook 2023-12-08 16:40:33 +01:00
wallpapers Add Space Shuttle Endeavour wallpaper 2023-10-05 15:02:14 +02:00
.envrc Load .env file 2023-04-24 08:25:18 +02:00
.gitignore Add emacs desktop file to .gitignore 2023-09-11 20:19:13 +02:00
.projectile Update flake.lock, update kernel version 2022-03-23 15:42:32 +01:00
.sops.yaml loki: Create k3s cluster with microvm 2023-11-03 00:08:00 +01:00
flake.lock flake.lock: Update 2023-12-11 16:01:55 +01:00
flake.nix Add nix-ld-rs 2023-12-08 16:39:57 +01:00
Justfile Justfile: add update task 2023-10-09 14:35:02 +02:00
krops.nix Add pre-commit hooks and fix style issues 2022-11-19 20:00:54 +01:00
README.org Replace exa with eza, because the former is unmaintained 2023-09-11 20:11:08 +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 eza 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