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

• Updated input 'disko':
    'github:nix-community/disko/98a6ab9b52f8b06db9c3116b1761bbeaf9484408' (2023-09-22)
  → 'github:nix-community/disko/19b62324663b6b9859caf7f335d232cf4f1f6a32' (2023-09-28)
• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/5a8b611e684b5299b6c782b5d022d86610accd7d' (2023-09-24)
  → 'github:nix-community/emacs-overlay/f32c6288cc50298c04a86364e5947c28981c2f7d' (2023-09-29)
• Updated input 'emacs-overlay/nixpkgs-stable':
    'github:NixOS/nixpkgs/e9b4b56e5a20ac322c0c01ccab7ec697ab076ea0' (2023-09-22)
  → 'github:NixOS/nixpkgs/5cfafa12d57374f48bcc36fda3274ada276cf69e' (2023-09-27)
• Updated input 'ha-now-playing':
    'git+https://git.datarift.nl/erwin/ha-now-playing.git?ref=main&rev=e76736b4c23769824e38e9ccf9e8677439dd9138' (2023-07-03)
  → 'git+https://git.datarift.nl/erwin/ha-now-playing.git?ref=main&rev=2e72629aec89c5c3ac2cb07e5961c1c20bb91c0b' (2023-09-28)
• Updated input 'ha-now-playing/crane':
    'github:ipetkov/crane/4d350bb94fdf8ec9d2e22d68bb13e136d73aa9d8' (2023-06-29)
  → 'github:ipetkov/crane/3de322e06fc88ada5e3589dc8a375b73e749f512' (2023-09-23)
• Updated input 'home-manager':
    'github:nix-community/home-manager/a88df2fb101778bfd98a17556b3a2618c6c66091' (2023-09-24)
  → 'github:nix-community/home-manager/9d4cdf8cc4da54beb5d2e927af7a259bb4a00645' (2023-09-28)
• Updated input 'microvm':
    'github:astro/microvm.nix/8b1fda371d21f92609e8bb0d418bd6b1da84c155' (2023-09-22)
  → 'github:astro/microvm.nix/67bf176ff48141292a66d8bce541463ee49d0fb5' (2023-09-27)
• Updated input 'nixos-hardware':
    'github:NixOS/nixos-hardware/61283b30d11f27d5b76439d43f20d0c0c8ff5296' (2023-09-24)
  → 'github:NixOS/nixos-hardware/adcfd6aa860d1d129055039696bc457af7d50d0e' (2023-09-28)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/e35dcc04a3853da485a396bdd332217d0ac9054f' (2023-09-22)
  → 'github:nixos/nixpkgs/8a86b98f0ba1c405358f1b71ff8b5e1d317f5db2' (2023-09-27)
• Updated input 'pre-commit-hooks':
    'github:cachix/pre-commit-hooks.nix/4f883a76282bc28eb952570afc3d8a1bf6f481d7' (2023-09-10)
  → 'github:cachix/pre-commit-hooks.nix/cb770e93516a1609652fa8e945a0f310e98f10c0' (2023-09-24)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/164b96162f83ae3be6a9f5577053e0d53e5f4e6a' (2023-09-24)
  → 'github:oxalica/rust-overlay/fb948d8eaf5d7c720dec92eb9c75193963fa0c52' (2023-09-29)
2023-09-29 09:45:09 +02:00
home-manager/modules sway: Make desktop-monitor assignment configurable 2023-09-29 09:41:19 +02:00
machines Initial transfer to sway on work PC 2023-09-15 15:51:41 +02:00
modules Merge branch 'feature/sway-at-work' of git.datarift.nl:erwin/nixos-config into feature/sway-at-work 2023-09-27 17:11:17 +02:00
overlays Remove commitgpt 2023-05-22 10:27:21 +02:00
pkgs Initial transfer to sway on work PC 2023-09-15 15:51:41 +02:00
users work: Set workspace-display assignment, wallpapers, include anyrun 2023-09-29 09:41:19 +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 Use caddy as proxy in place of nginx-proxy-manager 2023-08-10 16:43:46 +02:00
flake.lock flake.lock: Update 2023-09-29 09:45:09 +02:00
flake.nix Add anyrun and replace rofi 2023-09-21 23:26:17 +02:00
Justfile Add boot recipe to Justfile 2023-07-03 09:26:40 +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