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

• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/bb6e486a9fcb96868b15741ff4ee446cc731db43' (2024-01-09)
  → 'github:nix-community/emacs-overlay/e5d3e66bb146b77a9c978533dfb6028b9248f2fa' (2024-01-10)
• Updated input 'emacs-overlay/nixpkgs-stable':
    'github:NixOS/nixpkgs/c1be43e8e837b8dbee2b3665a007e761680f0c3d' (2024-01-05)
  → 'github:NixOS/nixpkgs/6723fa4e4f1a30d42a633bef5eb01caeb281adc3' (2024-01-08)
• Updated input 'home-manager':
    'github:nix-community/home-manager/51e44a13acea71b36245e8bd8c7db53e0a3e61ee' (2024-01-05)
  → 'github:nix-community/home-manager/e13aa9e287b3365473e5897e3667ea80a899cdfb' (2024-01-09)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/46ae0210ce163b3cba6c7da08840c1d63de9c701' (2024-01-06)
  → 'github:nixos/nixpkgs/317484b1ead87b9c1b8ac5261a8d2dd748a0492d' (2024-01-08)
• Updated input 'pre-commit-hooks':
    'github:cachix/pre-commit-hooks.nix/ea96f0c05924341c551a797aaba8126334c505d2' (2024-01-08)
  → 'github:cachix/pre-commit-hooks.nix/b0265634df1dc584585c159b775120e637afdb41' (2024-01-10)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/afa87241c19241aca9b7a9103635b82db2b147bb' (2024-01-09)
  → 'github:oxalica/rust-overlay/6dea03e0c8a81cf28340564259d4762b6d6f01de' (2024-01-10)
• Updated input 'sops':
    'github:Mic92/sops-nix/0ded57412079011f1210c2fcc10e112427d4c0e6' (2024-01-08)
  → 'github:Mic92/sops-nix/c0b3a5af90fae3ba95645bbf85d2b64880addd76' (2024-01-10)
2024-01-10 21:42:38 +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 Remove terraform stuff 2024-01-09 22:25:14 +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 Remove terraform stuff 2024-01-09 22:25:14 +01: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-10 21:42:38 +01:00
flake.nix Remove terraform stuff 2024-01-09 22:25:14 +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