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

• Updated input 'attic':
    'github:zhaofengli/attic/e6bedf1869f382cfc51b69848d6e09d51585ead6' (2024-01-02)
  → 'github:zhaofengli/attic/fbe252a5c21febbe920c025560cbd63b20e24f3b' (2024-01-18)
• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/4baba64e8088c2cdbde661d6697d1fff3ba59f6d' (2024-01-18)
  → 'github:nix-community/emacs-overlay/dc3dafe421095791e2dacf2b03e1686365160d35' (2024-01-19)
• Updated input 'emacs-overlay/nixpkgs-stable':
    'github:NixOS/nixpkgs/b8dd8be3c790215716e7c12b247f45ca525867e2' (2024-01-15)
  → 'github:NixOS/nixpkgs/8bf65f17d8070a0a490daf5f1c784b87ee73982c' (2024-01-17)
• Updated input 'microvm':
    'github:astro/microvm.nix/088ba565537eaef1041a87be5a44ca0daa4e1908' (2024-01-14)
  → 'github:astro/microvm.nix/ca69f1cf1cad946ccd04e476cc3822ae7088267d' (2024-01-19)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/ff3e4b3ee418009886848d48e4ba236a2f9de789' (2024-01-18)
  → 'github:oxalica/rust-overlay/47cac072a313d9cce884b9ea418d2bf712fa23dd' (2024-01-19)
2024-01-19 10:24:23 +01:00
home-manager/modules emacs: Add dhall-lsp-server 2024-01-17 09:38:52 +01:00
lib Sort overlays by name 2024-01-17 09:39:53 +01:00
machines mimir: Remove rtl88x2bu because it doesn't build. Add ddccontrol 2024-01-18 09:44:48 +01:00
modules nix: Use nix.settings and remove extraOptions 2024-01-17 09:41:56 +01:00
overlays incus-ui: init 2023-12-23 20:20:04 +01:00
pkgs incus-ui: Replace branding in places not covered by patches 2024-01-10 21:55:39 +01:00
users work: Add incus 2024-01-18 09:46:37 +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 Set up a Nix binary cache with attic 2024-01-17 09:32:27 +01:00
flake.lock flake.lock: Update 2024-01-19 10:24:23 +01:00
flake.nix Add nix-tree to devshell 2024-01-17 09:43:50 +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