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

• Updated input 'disko':
    'github:nix-community/disko/aef9a509db64a081186af2dc185654d78dc8e344' (2024-01-03)
  → 'github:nix-community/disko/f0a3425a7b173701922e7959d8bfb136ef53aa54' (2024-01-08)
• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/85ac1bf8543d2e179d7748f3788d58b06eacc758' (2024-01-06)
  → 'github:nix-community/emacs-overlay/bb6e486a9fcb96868b15741ff4ee446cc731db43' (2024-01-09)
• Updated input 'emacs-overlay/nixpkgs-stable':
    'github:NixOS/nixpkgs/b0b2c5445c64191fd8d0b31f2b1a34e45a64547d' (2024-01-03)
  → 'github:NixOS/nixpkgs/c1be43e8e837b8dbee2b3665a007e761680f0c3d' (2024-01-05)
• Updated input 'nil':
    'github:oxalica/nil/0031eb4343fd4672742fd6ff839da9b4f5120646' (2023-11-29)
  → 'github:oxalica/nil/059d33a24bb76d2048740bcce936362bf54b5bc9' (2024-01-07)
• Updated input 'nixos-hardware':
    'github:NixOS/nixos-hardware/172385318068519900a7d71c1024242fa6af75f0' (2024-01-05)
  → 'github:NixOS/nixos-hardware/b34a6075e9e298c4124e35c3ccaf2210c1f3a43b' (2024-01-09)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/bd645e8668ec6612439a9ee7e71f7eac4099d4f6' (2024-01-02)
  → 'github:nixos/nixpkgs/46ae0210ce163b3cba6c7da08840c1d63de9c701' (2024-01-06)
• Updated input 'pre-commit-hooks':
    'github:cachix/pre-commit-hooks.nix/9d3d7e18c6bc4473d7520200d4ddab12f8402d38' (2023-12-30)
  → 'github:cachix/pre-commit-hooks.nix/ea96f0c05924341c551a797aaba8126334c505d2' (2024-01-08)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/a127cccf7943beae944953963ba118d643299c3b' (2024-01-06)
  → 'github:oxalica/rust-overlay/afa87241c19241aca9b7a9103635b82db2b147bb' (2024-01-09)
• Updated input 'sops':
    'github:Mic92/sops-nix/cfdbaf68d00bc2f9e071f17ae77be4b27ff72fa6' (2023-12-31)
  → 'github:Mic92/sops-nix/0ded57412079011f1210c2fcc10e112427d4c0e6' (2024-01-08)
• Updated input 'sops/nixpkgs-stable':
    'github:NixOS/nixpkgs/0aad9113182747452dbfc68b93c86e168811fa6c' (2023-12-30)
  → 'github:NixOS/nixpkgs/70bdadeb94ffc8806c0570eb5c2695ad29f0e421' (2024-01-03)
2024-01-09 09:43:28 +01:00
home-manager/modules ssh: Update git.datarift.nl 2024-01-06 13:44:40 +01:00
lib Initial refactoring 2023-10-14 16:55:13 +02:00
machines loki: Minor restructuring of systemd config 2024-01-06 13:45:30 +01:00
modules keycloak: Update plugins 2024-01-03 01:15:44 +01:00
overlays incus-ui: init 2023-12-23 20:20:04 +01:00
pkgs incus-ui: init 2023-12-23 20:20:04 +01:00
users home: Add vial 2024-01-06 13:45:57 +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 sops: Update keys for containers 2024-01-02 22:48:01 +01:00
flake.lock flake.lock: Update 2024-01-09 09:43:28 +01:00
flake.nix colmena: Handle tags 2024-01-02 22:46:48 +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