No description
Find a file
Erwin Boskma 82cb587a11
flake.lock: Update
Flake lock file updates:

• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/f32c6288cc50298c04a86364e5947c28981c2f7d' (2023-09-29)
  → 'github:nix-community/emacs-overlay/5f14ec7a4977810a06f8eacb0169374fb4e282e9' (2023-10-01)
• Updated input 'home-manager':
    'github:nix-community/home-manager/9d4cdf8cc4da54beb5d2e927af7a259bb4a00645' (2023-09-28)
  → 'github:nix-community/home-manager/6f9b5b83ad1f470b3d11b8a9fe1d5ef68c7d0e30' (2023-10-01)
• Updated input 'microvm':
    'github:astro/microvm.nix/67bf176ff48141292a66d8bce541463ee49d0fb5' (2023-09-27)
  → 'github:astro/microvm.nix/95f24548fb7c31257eaf37c86a1e37de21a73645' (2023-09-30)
• Updated input 'nixos-hardware':
    'github:NixOS/nixos-hardware/adcfd6aa860d1d129055039696bc457af7d50d0e' (2023-09-28)
  → 'github:NixOS/nixos-hardware/0ab3ee718e964fb42dc57ace6170f19cb0b66532' (2023-10-01)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/8a86b98f0ba1c405358f1b71ff8b5e1d317f5db2' (2023-09-27)
  → 'github:nixos/nixpkgs/f5892ddac112a1e9b3612c39af1b72987ee5783a' (2023-09-29)
• Updated input 'pre-commit-hooks':
    'github:cachix/pre-commit-hooks.nix/cb770e93516a1609652fa8e945a0f310e98f10c0' (2023-09-24)
  → 'github:cachix/pre-commit-hooks.nix/033453f85064ccac434dfd957f95d8457901ecd6' (2023-10-01)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/fb948d8eaf5d7c720dec92eb9c75193963fa0c52' (2023-09-29)
  → 'github:oxalica/rust-overlay/fc6fe50d9a4540a1111731baaa00f207301fdeb7' (2023-10-01)
2023-10-01 19:34:24 +02:00
home-manager/modules Initial transfer to sway on work PC (#2) 2023-09-29 11:52:45 +02:00
machines Add udev rules for sandisk USB drive 2023-09-29 11:53:36 +02:00
modules Initial transfer to sway on work PC (#2) 2023-09-29 11:52:45 +02:00
overlays Remove commitgpt 2023-05-22 10:27:21 +02:00
pkgs Initial transfer to sway on work PC (#2) 2023-09-29 11:52:45 +02:00
users home: set gtk color-scheme through dconf 2023-10-01 19:33:28 +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 Use caddy as proxy in place of nginx-proxy-manager 2023-08-10 16:43:46 +02:00
flake.lock flake.lock: Update 2023-10-01 19:34:24 +02:00
flake.nix Initial transfer to sway on work PC (#2) 2023-09-29 11:52:45 +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 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