No description
Find a file
Erwin Boskma 5b3e91c442
Update flake.lock
• Updated input 'disko':
    'github:nix-community/disko/8f95856432e091e5ac56fea2df81e905ddd02d27' (2023-05-13)
  → 'github:nix-community/disko/efb2016c8e6a91ea64e0604d69e332d8aceabb95' (2023-05-19)
• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/9b41f8296a3898bdb87b9d091f9df540a982b242' (2023-05-15)
  → 'github:nix-community/emacs-overlay/34e7e913bb78cbb10a1fac073b55eaacb10c1f7c' (2023-05-19)
• Updated input 'home-manager':
    'github:nix-community/home-manager/e4272987f785a8848205263abb4911b922c21e1b' (2023-05-14)
  → 'github:nix-community/home-manager/b9a52ad20e58ebd003444915e35e3dd2c18fc715' (2023-05-19)
• Updated input 'microvm':
    'github:astro/microvm.nix/5cec173936d71f25d8f959db4893bf14bd053529' (2023-05-15)
  → 'github:astro/microvm.nix/59008a1eda995fbd844a756412f7d685086c15a2' (2023-05-17)
• Updated input 'nixos-hardware':
    'github:NixOS/nixos-hardware/81cd886719e10d4822b2a6caa96e95d56cc915ef' (2023-05-13)
  → 'github:NixOS/nixos-hardware/71ce85372a614d418d5e303dd5702a79d1545c04' (2023-05-15)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/0470f36b02ef01d4f43c641bbf07020bcab71bf1' (2023-05-14)
  → 'github:nixos/nixpkgs/48a0fb7aab511df92a17cf239c37f2bd2ec9ae3a' (2023-05-18)
• Updated input 'pre-commit-hooks':
    'github:cachix/pre-commit-hooks.nix/fb58866e20af98779017134319b5663b8215d912' (2023-04-27)
  → 'github:cachix/pre-commit-hooks.nix/96eabec58248ed8f4b0ad59e7ce9398018684fdc' (2023-05-15)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/4679872d2dd3e94ffef75efcbf77ea11549d90a7' (2023-05-15)
  → 'github:oxalica/rust-overlay/e2ceeaa7f9334c5d732323b6fec363229da4f382' (2023-05-19)
2023-05-19 11:43:10 +02:00
home-manager/modules emacs: add impatient-mode 2023-05-17 08:05:12 +02:00
machines Add Kanata to manage keyboard layout 2023-05-17 08:06:05 +02:00
modules Add Kanata to manage keyboard layout 2023-05-17 08:06:05 +02:00
overlays Add commitgpt package 2022-12-05 11:02:12 +01:00
pkgs Update obs-backgroundremoval 2023-04-03 09:45:35 +02:00
users Add Kanata to manage keyboard layout 2023-05-17 08:06:05 +02:00
.envrc Load .env file 2023-04-24 08:25:18 +02:00
.gitignore Add terraform stuff to .gitignore 2023-01-06 01:10:48 +01:00
.projectile Update flake.lock, update kernel version 2022-03-23 15:42:32 +01:00
.sops.yaml Update frigate key 2023-03-24 14:23:50 +01:00
flake.lock Update flake.lock 2023-05-19 11:43:10 +02:00
flake.nix Remove nixos-install-tools from devshell 2023-05-16 09:11:52 +02:00
Justfile Load .env file 2023-04-24 08:25:18 +02:00
krops.nix Add pre-commit hooks and fix style issues 2022-11-19 20:00:54 +01:00
README.org Tweaks 2022-10-05 15:36:12 +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 exa 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