No description
Find a file
Erwin Boskma 4978bc1bb3
Update flake.lock
• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/41f4d133abf0a955e138397754b6ced199c3a6aa' (2023-06-26)
  → 'github:nix-community/emacs-overlay/f42cc216ad19b81c18657671b8681f1b005804b3' (2023-06-28)
• Updated input 'emacs-overlay/nixpkgs-stable':
    'github:NixOS/nixpkgs/33223d479ffde3d05ac16c6dff04ae43cc27e577' (2023-06-23)
  → 'github:NixOS/nixpkgs/9790f3242da2152d5aa1976e3e4b8b414f4dd206' (2023-06-27)
• Updated input 'flake-parts':
    'github:hercules-ci/flake-parts/71fb97f0d875fd4de4994dfb849f2c75e17eb6c3' (2023-06-01)
  → 'github:hercules-ci/flake-parts/37dd7bb15791c86d55c5121740a1887ab55ee836' (2023-06-26)
• Updated input 'home-manager':
    'github:nix-community/home-manager/0ee5ab611dc1fbb5180bd7d88d2aeb7841a4d179' (2023-06-24)
  → 'github:nix-community/home-manager/47c2adc6b31e9cff335010f570814e44418e2b3e' (2023-06-28)
• Updated input 'naersk':
    'github:nix-community/naersk/8507af04eb40c5520bd35d9ce6f9d2342cea5ad1' (2023-06-12)
  → 'github:nix-community/naersk/df10963b956962913b693a638746a95d6c506404' (2023-06-27)
• Updated input 'nil':
    'github:oxalica/nil/e727e5556564966fb3f023f16a165067ced4ad8d' (2023-06-24)
  → 'github:oxalica/nil/f6bd5fea84bb5b0b3685b5dd9c21c83fe6ab9b64' (2023-06-26)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/3ae20aa58a6c0d1ca95c9b11f59a2d12eebc511f' (2023-06-23)
  → 'github:nixos/nixpkgs/6b3d1b1cf13f407fef5e634b224d575eb7211975' (2023-06-26)
• Updated input 'pre-commit-hooks':
    'github:cachix/pre-commit-hooks.nix/7807e1851d95828ed98491930d2d9e7ddbe65da4' (2023-06-20)
  → 'github:cachix/pre-commit-hooks.nix/1fa438eee82f35bdd4bc30a9aacd7648d757b388' (2023-06-26)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/b91d162355e88de89b379f3d6a459ade92704474' (2023-06-26)
  → 'github:oxalica/rust-overlay/fc57a011f1c20d2b24f75a79ab669430a221b220' (2023-06-28)
2023-06-28 12:04:42 +02:00
home-manager/modules polybar: Improve headset battery script 2023-06-23 14:14:53 +02:00
machines Disable ssh-agent in favour of gnome keyring 2023-06-23 14:15:11 +02:00
modules Switch CI to woodpecker 2023-06-19 08:19:00 +02:00
overlays Remove commitgpt 2023-05-22 10:27:21 +02:00
pkgs Remove commitgpt 2023-05-22 10:27:21 +02:00
users Enable gnome-keyring in home-manager 2023-06-08 10:04:21 +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 Add work age key 2023-06-01 16:04:32 +02:00
flake.lock Update flake.lock 2023-06-28 12:04:42 +02:00
flake.nix Remove eww-wayland from devshell 2023-06-23 14:14:33 +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