No description
Find a file
Erwin Boskma cc5a2a1d2f
Update flake.lock
• Updated input 'disko':
    'github:nix-community/disko/efb2016c8e6a91ea64e0604d69e332d8aceabb95' (2023-05-19)
  → 'github:nix-community/disko/12662956d155c75dbbbdb72e3f3691169475faae' (2023-05-21)
• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/deeb9232d4545b989cb0ec025db5eacaaa0ed400' (2023-05-19)
  → 'github:nix-community/emacs-overlay/fd44d0d55374c24bf92aa59b4131a5cada358bb6' (2023-05-21)
• Updated input 'home-manager':
    'github:nix-community/home-manager/b9a52ad20e58ebd003444915e35e3dd2c18fc715' (2023-05-19)
  → 'github:nix-community/home-manager/27ef11f0218d9018ebb2948d40133df2b1de622d' (2023-05-20)
• Updated input 'nil':
    'github:oxalica/nil/18de045d7788df2343aec58df7b85c10d1f5d5dd' (2023-05-09)
  → 'github:oxalica/nil/17ed1578f3a225f2760d4da3adb440eb8677f2d3' (2023-05-19)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/48a0fb7aab511df92a17cf239c37f2bd2ec9ae3a' (2023-05-18)
  → 'github:nixos/nixpkgs/3005f20ce0aaa58169cdee57c8aa12e5f1b6e1b3' (2023-05-20)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/e2ceeaa7f9334c5d732323b6fec363229da4f382' (2023-05-19)
  → 'github:oxalica/rust-overlay/eb5c0ca38d81b934b5ff1deca912d263e1a85bb5' (2023-05-21)
• Updated input 'sops':
    'github:Mic92/sops-nix/a376127bb5277cd2c337a9458744f370aaf2e08d' (2023-05-14)
  → 'github:Mic92/sops-nix/4ccdfb573f323a108a44c13bb7730e42baf962a9' (2023-05-21)
• Updated input 'sops/nixpkgs-stable':
    'github:NixOS/nixpkgs/c6d2f3dc0d3efd4285eebe4f8a36a47ba438138e' (2023-05-14)
  → 'github:NixOS/nixpkgs/d0dade110dc7072d67ce27826cfe9ab2ab0cf247' (2023-05-21)
2023-05-21 17:10:32 +02:00
home-manager/modules emacs: add impatient-mode 2023-05-17 08:05:12 +02:00
machines Add Kanata to manage keyboard layout 2023-05-17 08:06:05 +02:00
modules Add Kanata to manage keyboard layout 2023-05-17 08:06:05 +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 Add Kanata to manage keyboard layout 2023-05-17 08:06:05 +02:00
.envrc Load .env file 2023-04-24 08:25:18 +02: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-05-21 17:10:32 +02:00
flake.nix Remove nixos-install-tools from devshell 2023-05-16 09:11:52 +02:00
Justfile Load .env file 2023-04-24 08:25:18 +02: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