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

• Updated input 'disko':
    'github:nix-community/disko/d0b4408eaf782a1ada0a9133bb1cecefdd59c696' (2024-01-15)
  → 'github:nix-community/disko/0033adc6e3f1ed076f3ed1c637ef1dfe6bef6733' (2024-01-18)
• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/bd632887992dea09e08244c2f7c632c3590ab9dc' (2024-01-16)
  → 'github:nix-community/emacs-overlay/4baba64e8088c2cdbde661d6697d1fff3ba59f6d' (2024-01-18)
• Updated input 'home-manager':
    'github:nix-community/home-manager/fa152fd745b816dcfc751962f2e20c8669aed8f1' (2024-01-16)
  → 'github:nix-community/home-manager/b84191db127c16a92cbdf7f7b9969d58bb456699' (2024-01-17)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/9b19f5e77dd906cb52dade0b7bd280339d2a1f3d' (2024-01-13)
  → 'github:nixos/nixpkgs/842d9d80cfd4560648c785f8a4e6f3b096790e19' (2024-01-17)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/b21f3c0d5bf0f0179f5f0140e8e0cd099618bd04' (2024-01-16)
  → 'github:oxalica/rust-overlay/ff3e4b3ee418009886848d48e4ba236a2f9de789' (2024-01-18)
2024-01-18 15:31:21 +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-18 15:31:21 +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