No description
Find a file
Erwin Boskma 26c140120b
Update flake.lock
• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/16481a0121af8d3024c4cdd74fc40ff521392479' (2023-02-28)
  → 'github:nix-community/emacs-overlay/545383bd7de8e3f100356fea217698379d8f5c31' (2023-02-28)
• Updated input 'home-manager':
    'github:nix-community/home-manager/305daba44a9df57738cffc67c08129005a25579a' (2023-02-27)
  → 'github:nix-community/home-manager/ef7d316578367ed7732a21eede6c79546a36124f' (2023-02-28)
• Updated input 'hyprland':
    'github:Hyprwm/Hyprland/49f423aa8f9b6e063c7806098a9b6b43a7978c02' (2023-02-27)
  → 'github:Hyprwm/Hyprland/52878161e4bbe77ba9e73c44bab03d16356e36f7' (2023-03-01)
• Updated input 'nixos-hardware':
    'github:NixOS/nixos-hardware/dcbf93d500c54cfee7a7c854c4669d404236a821' (2023-02-28)
  → 'github:NixOS/nixos-hardware/77de4cd09db4dbee9551ed2853cfcf113d7dc5ce' (2023-02-28)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/c1df023b1aaded1b65a1f4ad604a98a58ab4db97' (2023-02-28)
  → 'github:oxalica/rust-overlay/f388187efb41ce4195b2f4de0b6bb463d3cd0a76' (2023-03-01)
• Updated input 'sops':
    'github:Mic92/sops-nix/898fc4a434ebde01f2a8c7d0184bad872ea6b41c' (2023-02-28)
  → 'github:Mic92/sops-nix/27018a9084006b8371b1f833882adfb85bd23004' (2023-02-28)
2023-03-01 19:25:06 +01:00
home-manager/modules Use compact layout in zellij 2023-02-20 08:08:09 +01:00
machines Add regin to replace Pi3 with FluiddPi, which is unmaintained 2023-02-28 13:31:47 +01:00
modules Add lxd module 2023-02-28 13:21:51 +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 Cleanup and minor tweaks 2023-02-13 08:27:46 +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-01 19:25:06 +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