No description
Find a file
Erwin Boskma 1973542e71
Update flake.lock
• Updated input 'disko':
    'github:nix-community/disko/68060d2cd1da2baa828d1caf267f128808bc9c81' (2023-02-27)
  → 'github:nix-community/disko/efc8dd8083da15433ad226baad110aea4fca634b' (2023-03-02)
• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/545383bd7de8e3f100356fea217698379d8f5c31' (2023-02-28)
  → 'github:nix-community/emacs-overlay/6d54cfde44494da2396678d82bb61eeb0a3fa392' (2023-03-04)
• Updated input 'home-manager':
    'github:nix-community/home-manager/ef7d316578367ed7732a21eede6c79546a36124f' (2023-02-28)
  → 'github:nix-community/home-manager/b9e3a29864798d55ec1d6579ab97876bb1ee9664' (2023-03-02)
• Updated input 'hyprland':
    'github:Hyprwm/Hyprland/52878161e4bbe77ba9e73c44bab03d16356e36f7' (2023-03-01)
  → 'github:Hyprwm/Hyprland/c44409932546e73f527a0ff405fe1df190921c83' (2023-03-04)
• Updated input 'hyprland/wlroots':
    'gitlab:wlroots/wlroots/677a3f2f8847ed2de49dd60868f9d9487a546f58' (2023-02-02)
  → 'gitlab:wlroots/wlroots/5ae17de23f5fd9bb252a698f3771c840280e2c05' (2023-03-02)
• Updated input 'nil':
    'github:oxalica/nil/6723d2982d33e9d698ae5c3b0cfcccd9292b4eff' (2023-02-26)
  → 'github:oxalica/nil/0f918f956fefee72eff801cdcfc0c7cce5be586a' (2023-03-03)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/7f5639fa3b68054ca0b062866dc62b22c3f11505' (2023-02-26)
  → 'github:nixos/nixpkgs/a08d6979dd7c82c4cef0dcc6ac45ab16051c1169' (2023-03-01)
• Updated input 'pre-commit-hooks':
    'github:cachix/pre-commit-hooks.nix/2bd861ab81469428d9c823ef72c4bb08372dd2c4' (2023-02-23)
  → 'github:cachix/pre-commit-hooks.nix/382bee738397ca005206eefa36922cc10df8a21c' (2023-03-03)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/f388187efb41ce4195b2f4de0b6bb463d3cd0a76' (2023-03-01)
  → 'github:oxalica/rust-overlay/c25d3e1951863ac0061d47a3fabf9aa7c91db5e5' (2023-03-04)
• Updated input 'sops':
    'github:Mic92/sops-nix/27018a9084006b8371b1f833882adfb85bd23004' (2023-02-28)
  → 'github:Mic92/sops-nix/128e9b29ddd88ceb634a28f7dbbfee7b895f005f' (2023-03-03)
2023-03-04 14:24:03 +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-04 14:24:03 +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