No description
Find a file
Erwin Boskma d250c79a63
Update flake.lock
• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/d092f0b653985d6cb1d7c828ff2ac602a36b7e4e' (2023-04-07)
  → 'github:nix-community/emacs-overlay/0a91697aae6acefe1d5c9b3654ea273b53539380' (2023-04-09)
• Updated input 'flake-utils':
    'github:numtide/flake-utils/411e8764155aa9354dbcd6d5faaeb97e9e3dce24' (2023-04-06)
  → 'github:numtide/flake-utils/033b9f258ca96a10e543d4442071f614dc3f8412' (2023-04-09)
• Added input 'flake-utils/systems':
    'github:nix-systems/default/da67096a3b9bf56a91d16901293e51ba5b49a27e' (2023-04-09)
• Updated input 'home-manager':
    'github:nix-community/home-manager/ec06f419af79207b33d797064dfb3fc9dbe1df4a' (2023-04-04)
  → 'github:nix-community/home-manager/440faf5ae472657ef2d8cc7756d77b6ab0ace68d' (2023-04-05)
• Updated input 'microvm':
    'github:astro/microvm.nix/d05d2b2e5ae938184efba4be575ef2d7bdf1ee5b' (2023-04-05)
  → 'github:astro/microvm.nix/b496028321ba11ca3e6eef286ca3915577f4b793' (2023-04-09)
• Updated input 'nixos-hardware':
    'github:NixOS/nixos-hardware/148fee317058fad8159619e9d6ccc8c0aa6d0fce' (2023-04-06)
  → 'github:NixOS/nixos-hardware/3006d2860a6ed5e01b0c3e7ffb730e9b293116e2' (2023-04-07)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/9c8ff8b426a8b07b9e0a131ac3218740dc85ba1e' (2023-04-05)
  → 'github:nixos/nixpkgs/d9f759f2ea8d265d974a6e1259bd510ac5844c5d' (2023-04-08)
• Updated input 'pre-commit-hooks':
    'github:cachix/pre-commit-hooks.nix/d8480d44ffd2e1b5440a3cf74ce6fb299557e9a0' (2023-04-06)
  → 'github:cachix/pre-commit-hooks.nix/2144d9ddcb550d6dce64a2b44facdc8c5ea2e28a' (2023-04-08)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/d1dd2791698a60837ed829a49cd0e4663f5da801' (2023-04-07)
  → 'github:oxalica/rust-overlay/9e55ff64c777f05310d83be0a0cbf0c7e299f63a' (2023-04-09)
• Updated input 'sops':
    'github:Mic92/sops-nix/b93eb910f768f9788737bfed596a598557e5625d' (2023-04-02)
  → 'github:Mic92/sops-nix/ddc6f124cb9be22d2ba066064c28bc19039a6bce' (2023-04-09)
• Updated input 'sops/nixpkgs-stable':
    'github:NixOS/nixpkgs/c1e2efaca8d8a3db6a36f652765d6c6ba7bb8fae' (2023-04-01)
  → 'github:NixOS/nixpkgs/e45cc0138829ad86e7ff17a76acf2d05e781e30a' (2023-04-09)
2023-04-09 22:01:50 +02:00
home-manager/modules nushell: Temporary workaround for starship generating invalid config 2023-04-07 11:20:18 +02:00
machines Heimdall is now a VM on Hetzner Cloud running headscale 2023-04-09 22:01:32 +02:00
modules Heimdall is now a VM on Hetzner Cloud running headscale 2023-04-09 22:01:32 +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 Heimdall is now a VM on Hetzner Cloud running headscale 2023-04-09 22:01:32 +02: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-04-09 22:01:50 +02: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