No description
Find a file
Erwin Boskma d468018e7b
Update flake.lock
• Updated input 'disko':
    'github:nix-community/disko/9a8d4a049dbc25b5f55a243a564cb402d2a21518' (2023-03-10)
  → 'github:nix-community/disko/a683b848c3c9dd81e9639dc3fd9c5329fd4294a4' (2023-03-13)
• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/8be50d27360b033539b45cd3606a4278a55f69ec' (2023-03-11)
  → 'github:nix-community/emacs-overlay/b9274d63c2bc76e062a269f533c9f4a2bbf1e1d8' (2023-03-13)
• Updated input 'home-manager':
    'github:nix-community/home-manager/7224d7c54c5fc74cdf60b208af6148ed3295aa32' (2023-03-10)
  → 'github:nix-community/home-manager/7fe539dfbba8a158a455b54697d1bd7e97b37c60' (2023-03-13)
• Updated input 'hyprland':
    'github:Hyprwm/Hyprland/253286669a115c4e63c3924eeec8391af2504c57' (2023-03-10)
  → 'github:Hyprwm/Hyprland/17deeb07ad4ce1b34bfe22524f9b248c5c6e01e6' (2023-03-13)
• Updated input 'microvm':
    'github:astro/microvm.nix/108f0c561eb4b140cac1ac7da7ba72867f62d174' (2023-03-08)
  → 'github:astro/microvm.nix/55667b89c0f2b60c8d95a203f3784d2dca2ea31a' (2023-03-12)
• Updated input 'nil':
    'github:oxalica/nil/457f6020be85b2af9f4fc9ede5ec7fa53aed588f' (2023-03-11)
  → 'github:oxalica/nil/2552c08e3967e3a5137d7d3db0af5166877d4630' (2023-03-11)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/0c4800d579af4ed98ecc47d464a5e7b0870c4b1f' (2023-03-10)
  → 'github:nixos/nixpkgs/5a1dc8acd977ff3dccd1328b7c4a6995429a656b' (2023-03-12)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/1c8200cdc4c830d937fbf8b19e1f3e83daf3370a' (2023-03-11)
  → 'github:oxalica/rust-overlay/f25d4bc2f6a0a3f9a2f15d3b9e3edb0ee5099a3d' (2023-03-13)
• Updated input 'sops':
    'github:Mic92/sops-nix/1568702de0d2488c1e77011a9044de7fadec80c4' (2023-03-10)
  → 'github:Mic92/sops-nix/9e98f7a442b0e318de9cce757675c2ab922bdf2b' (2023-03-12)
• Updated input 'sops/nixpkgs-stable':
    'github:NixOS/nixpkgs/d51554151a91cd4543a7620843cc378e3cbc767e' (2023-03-04)
  → 'github:NixOS/nixpkgs/c34fc09c77172c4189df4594a0749e25a23cdd9b' (2023-03-12)
2023-03-13 15:41:39 +01:00
home-manager/modules Use ControlMaster for repohost 2023-03-10 12:56:51 +01:00
machines Update to linux 6.2 2023-03-10 12:57:16 +01:00
modules Enable BuildKit by default in docker 2023-03-10 12:57:46 +01:00
overlays Add commitgpt package 2022-12-05 11:02:12 +01:00
pkgs Update commitgpt 2022-12-07 20:26:29 +01:00
users Enable cargo module in work profile 2023-03-10 12:57:30 +01:00
.envrc Secrets with sops 2021-11-26 22:21:16 +01: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 minio stuff 2023-01-06 00:11:11 +01:00
flake.lock Update flake.lock 2023-03-13 15:41:39 +01:00
flake.nix Add taplo to devshell 2023-02-03 14:32:00 +01: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