No description
Find a file
Erwin Boskma a45f2c1ecf
Update flake.lock
• Updated input 'disko':
    'github:nix-community/disko/25c5376b02597fa269eb30ba9cd2cb86e0bb99d8' (2023-03-21)
  → 'github:nix-community/disko/eb5def310c7331545e72090b4cda6cb0255b870d' (2023-03-24)
• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/add5c977ba4e6a78d00b8f25277809e2301a5c29' (2023-03-21)
  → 'github:nix-community/emacs-overlay/f03b172233e1bf1fb2ffbc543b86aae00fbad444' (2023-03-24)
• Updated input 'home-manager':
    'github:nix-community/home-manager/e386ec640e16dc91120977285cb8c72c77078164' (2023-03-21)
  → 'github:nix-community/home-manager/363c46b2480f1b73ec37cf68caac61f5daa82a2e' (2023-03-22)
• Updated input 'microvm':
    'github:astro/microvm.nix/213475e01136d316ed58d5fe38a361cc6b13a661' (2023-03-21)
  → 'github:astro/microvm.nix/31d3c1a05fba175e5d96f16256296ad4088ca9f5' (2023-03-23)
• Updated input 'microvm/fenix':
    'github:nix-community/fenix/20d2fcd01df0c3db0429112ab3d911ee0bc3a3b5' (2023-02-24)
  → 'github:nix-community/fenix/49237f7a76b98954306e77a7bd42f6491ad5c6a7' (2023-03-22)
• Updated input 'microvm/fenix/rust-analyzer-src':
    'github:rust-lang/rust-analyzer/27239fbb58a115915ffc1ce65ededc951eb00fd2' (2023-02-21)
  → 'github:rust-lang/rust-analyzer/3321799e8fac622db50fe8c3284062f7d0f1bf53' (2023-03-21)
• Updated input 'naersk':
    'github:nix-community/naersk/5c8dbab3d9fe3b3e5796f505bda2af9414bf1ddd' (2023-03-21)
  → 'github:nix-community/naersk/88cd22380154a2c36799fe8098888f0f59861a15' (2023-03-23)
• Updated input 'nil':
    'github:oxalica/nil/e7045f1779fd202a3316f84b864c304f339cccea' (2023-03-13)
  → 'github:oxalica/nil/73fda843416741f870a97c23867f27efb9fd9f20' (2023-03-24)
• Updated input 'nixos-hardware':
    'github:NixOS/nixos-hardware/a4bc66709604ab78abc575b60baa6d23ae027a59' (2023-03-19)
  → 'github:NixOS/nixos-hardware/648021dcb2b65498eed3ea3a7339cdfc3bea4d82' (2023-03-23)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/60c1d71f2ba4c80178ec84523c2ca0801522e0a6' (2023-03-19)
  → 'github:nixos/nixpkgs/19cf008bb18e47b6e3b4e16e32a9a4bdd4b45f7e' (2023-03-21)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/f5efdf14ed378aac26cadded4d0c00ca91974d32' (2023-03-21)
  → 'github:oxalica/rust-overlay/afbdcf305fd6f05f708fe76d52f24d37d066c251' (2023-03-24)
2023-03-24 14:25:55 +01:00
home-manager/modules Add frigate to ssh config 2023-03-21 17:22:34 +01:00
machines Update frigate key 2023-03-24 14:23:50 +01:00
modules Move appimage-run to desktop module 2023-03-24 14:24:42 +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 Add FreeCAD 2023-03-24 14:24:53 +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 Update frigate key 2023-03-24 14:23:50 +01:00
flake.lock Update flake.lock 2023-03-24 14:25:55 +01:00
flake.nix Remove hyprland 2023-03-15 12:03:15 +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