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

• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/5075b8df3d8d4d28e73e921acb46a2cf7f34ad28' (2023-12-11)
  → 'github:nix-community/emacs-overlay/47798c4ab07d5f055bb2625010cf6d8e3f384923' (2023-12-12)
• Updated input 'emacs-overlay/nixpkgs-stable':
    'github:NixOS/nixpkgs/0561103cedb11e7554cf34cea81e5f5d578a4753' (2023-12-05)
  → 'github:NixOS/nixpkgs/c2786e7084cbad90b4f9472d5b5e35ecb57958af' (2023-12-10)
• Updated input 'home-manager':
    'github:nix-community/home-manager/defbb9c5857e157703e8fc7cf3c2ceb01cb95883' (2023-12-10)
  → 'github:nix-community/home-manager/d9297efd3a1c3ebb9027dc68f9da0ac002ae94db' (2023-12-12)
• Updated input 'nixos-hardware':
    'github:NixOS/nixos-hardware/030edbb68e69f2b97231479f98a9597024650df2' (2023-12-10)
  → 'github:NixOS/nixos-hardware/7763c6fd1f299cb9361ff2abf755ed9619ef01d6' (2023-12-13)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/666fc80e7b2afb570462423cb0e1cf1a3a34fedd' (2023-12-09)
  → 'github:nixos/nixpkgs/a9bf124c46ef298113270b1f84a164865987a91c' (2023-12-11)
• Updated input 'pre-commit-hooks':
    'github:cachix/pre-commit-hooks.nix/f99ed8523fc3aef67a7c838ca31f4b94ef902837' (2023-12-11)
  → 'github:cachix/pre-commit-hooks.nix/007a45d064c1c32d04e1b8a0de5ef00984c419bc' (2023-12-13)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/d3c43c05ef3cd66ddab4a5a82a7df71e40496aa5' (2023-12-11)
  → 'github:oxalica/rust-overlay/cb9016d3a569100a609bb92c0a45beb9e23cd4eb' (2023-12-13)
2023-12-13 09:53:14 +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-13 09:53:14 +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