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

• Updated input 'disko':
    'github:nix-community/disko/036d480ae895afff54da5034331950827a7f317a' (2024-01-14)
  → 'github:nix-community/disko/d0b4408eaf782a1ada0a9133bb1cecefdd59c696' (2024-01-15)
• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/9fa1fdb259360c2d7b45bb3f4003a83b5f9f809e' (2024-01-14)
  → 'github:nix-community/emacs-overlay/bd632887992dea09e08244c2f7c632c3590ab9dc' (2024-01-16)
• Updated input 'emacs-overlay/nixpkgs-stable':
    'github:NixOS/nixpkgs/428544ae95eec077c7f823b422afae5f174dee4b' (2024-01-13)
  → 'github:NixOS/nixpkgs/b8dd8be3c790215716e7c12b247f45ca525867e2' (2024-01-15)
• Updated input 'flake-utils':
    'github:numtide/flake-utils/4022d587cbbfd70fe950c1e2083a02621806a725' (2023-12-04)
  → 'github:numtide/flake-utils/1ef2e671c3b0c19053962c07dbda38332dcebf26' (2024-01-15)
• Updated input 'home-manager':
    'github:nix-community/home-manager/f2942f3385f1b35cc8a1abb03a45e29c9cb4d3c8' (2024-01-13)
  → 'github:nix-community/home-manager/fa152fd745b816dcfc751962f2e20c8669aed8f1' (2024-01-16)
• Updated input 'nixos-hardware':
    'github:NixOS/nixos-hardware/ef811636cc847355688804593282078bac7758d4' (2024-01-13)
  → 'github:NixOS/nixos-hardware/bee2202bec57e521e3bd8acd526884b9767d7fa0' (2024-01-15)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/71d1d01578272b2294f6993b1860dfb22e4baac3' (2024-01-14)
  → 'github:oxalica/rust-overlay/b21f3c0d5bf0f0179f5f0140e8e0cd099618bd04' (2024-01-16)
• Updated input 'sops':
    'github:Mic92/sops-nix/70dd0d521f7849338e487a219c1a07c429a66d77' (2024-01-14)
  → 'github:Mic92/sops-nix/87755331580fdf23df7e39b46d63ac88236bf42c' (2024-01-15)
2024-01-16 09:19:14 +01:00
home-manager/modules emacs: Fix Elixir language server configuration 2024-01-11 22:46:41 +01:00
lib Initial refactoring 2023-10-14 16:55:13 +02:00
machines k3s does not need the override anymore 2024-01-10 21:57:02 +01:00
modules systemd: Disable LLMNR 2024-01-10 21:55:23 +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 home: Handle wallpapers differently 2024-01-10 21:56:44 +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-16 09:19:14 +01:00
flake.nix Refactor flake.nix 2024-01-10 21:53:04 +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