No description
Find a file
Erwin Boskma d57f6b46cb
Update flake.lock
• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/7951ca5a9227877296c49a7ab0ce8dd430c12be5' (2023-07-31)
  → 'github:nix-community/emacs-overlay/791acfa700b9f96c35635fde2a17a66b4ed88c9e' (2023-08-03)
• Updated input 'emacs-overlay/nixpkgs-stable':
    'github:NixOS/nixpkgs/d57e8c535d4cbb07f441c30988ce52eec69db7a8' (2023-07-29)
  → 'github:NixOS/nixpkgs/bd836ac5e5a7358dea73cb74a013ca32864ccb86' (2023-08-01)
• Updated input 'flake-parts':
    'github:hercules-ci/flake-parts/8e8d955c22df93dbe24f19ea04f47a74adbdc5ec' (2023-07-04)
  → 'github:hercules-ci/flake-parts/59cf3f1447cfc75087e7273b04b31e689a8599fb' (2023-08-01)
• Updated input 'flake-parts/nixpkgs-lib':
    'github:NixOS/nixpkgs/4bc72cae107788bf3f24f30db2e2f685c9298dc9?dir=lib' (2023-06-29)
  → 'github:NixOS/nixpkgs/9e1960bc196baf6881340d53dccb203a951745a2?dir=lib' (2023-08-01)
• Updated input 'home-manager':
    'github:nix-community/home-manager/729ab77f9e998e0989fa30140ecc91e738bc0cb1' (2023-07-31)
  → 'github:nix-community/home-manager/86dd48d70a2e2c17e84e747ba4faa92453e68d4a' (2023-08-03)
• Updated input 'microvm':
    'github:astro/microvm.nix/3183d2a0c00e25772ed3926a24908e3445c69bbc' (2023-07-29)
  → 'github:astro/microvm.nix/0263360417f214c1e5a585210e43d950d00bc683' (2023-08-01)
• Updated input 'nil':
    'github:oxalica/nil/59bcad0b13b5d77668c0c125fef71d7b41406d7a' (2023-07-19)
  → 'github:oxalica/nil/6f20ed411520aac06b456e31aab43cf10df231a2' (2023-08-02)
• Updated input 'nixos-hardware':
    'github:NixOS/nixos-hardware/96e5a0a0e8568c998135ea05575a9ed2c87f5492' (2023-07-30)
  → 'github:NixOS/nixos-hardware/24f9162b26f0debd163f6d94752aa2acb9db395a' (2023-08-02)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/e6ab46982debeab9831236869539a507f670a129' (2023-07-29)
  → 'github:nixos/nixpkgs/66aedfd010204949cb225cf749be08cb13ce1813' (2023-08-02)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/05d480a7aef1aae1bfb67a39134dcf48c5322528' (2023-07-30)
  → 'github:oxalica/rust-overlay/99df4908445be37ddb2d332580365fce512a7dcf' (2023-08-03)
2023-08-03 12:24:09 +02:00
home-manager/modules dunst: Restyle 2023-07-27 09:16:16 +02:00
machines Consolidate configuration for mimir 2023-08-03 10:42:12 +02:00
modules Update fonts module due to upstream changes 2023-07-31 11:58:06 +02:00
overlays Remove commitgpt 2023-05-22 10:27:21 +02:00
pkgs Remove commitgpt 2023-05-22 10:27:21 +02:00
users Enable eww 2023-07-19 14:04:10 +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 Add work age key 2023-06-01 16:04:32 +02:00
flake.lock Update flake.lock 2023-08-03 12:24:09 +02:00
flake.nix Add pciutils to devshell 2023-07-19 14:07:31 +02:00
Justfile Add boot recipe to Justfile 2023-07-03 09:26:40 +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