No description
Find a file
Erwin Boskma 06ff13ecc1
Updatef flake.lock
• Updated input 'disko':
    'github:nix-community/disko/7eb09408393faa5b8f3b3524c39cb93d938e8d04' (2023-07-14)
  → 'github:nix-community/disko/774ce7df25538bd73a8d456e0828907fa6b62572' (2023-07-19)
• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/cffb75cf9e402be7e1a62fe4d67fe2d26713a3ba' (2023-07-18)
  → 'github:nix-community/emacs-overlay/93c4fa53dcc26ea00672995deba057f59850d76a' (2023-07-20)
• Updated input 'emacs-overlay/nixpkgs-stable':
    'github:NixOS/nixpkgs/f64b9738da8e86195766147e9752c67fccee006c' (2023-07-16)
  → 'github:NixOS/nixpkgs/08700de174bc6235043cb4263b643b721d936bdb' (2023-07-18)
• Updated input 'home-manager':
    'github:nix-community/home-manager/2f84579a70b8c74e5ebb37299a0c3ba279f09382' (2023-07-16)
  → 'github:nix-community/home-manager/0cb3ac57fca6b52c42e4c0f560185540ae1dfb6c' (2023-07-19)
• Updated input 'microvm':
    'github:astro/microvm.nix/018691bf86a70b7e5d24eb37d6aad05ce1c1b12e' (2023-07-09)
  → 'github:astro/microvm.nix/4b0f24f26638937036dc0dc9e28d2bab4152ef3d' (2023-07-19)
• Updated input 'nil':
    'github:oxalica/nil/e2fe1b0bebcc810a5e6c24c061d4d8dcc061a8fc' (2023-07-14)
  → 'github:oxalica/nil/59bcad0b13b5d77668c0c125fef71d7b41406d7a' (2023-07-19)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222' (2023-07-16)
  → 'github:nixos/nixpkgs/684c17c429c42515bafb3ad775d2a710947f3d67' (2023-07-18)
• Updated input 'pre-commit-hooks':
    'github:cachix/pre-commit-hooks.nix/87589fa438dd6d5b8c7c1c6ab2ad69e4663bb51f' (2023-07-17)
  → 'github:cachix/pre-commit-hooks.nix/eb433bff05b285258be76513add6f6c57b441775' (2023-07-18)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/ed2774a9131ddad12e552ba04bd92f87df04a28b' (2023-07-18)
  → 'github:oxalica/rust-overlay/587d457313ed6c163be839c03a7eb4db0f52735b' (2023-07-20)
2023-07-21 12:50:45 +02:00
home-manager/modules eww: make it a bit smaller and black 2023-07-19 14:07:16 +02:00
machines loki: Consolidate configuration 2023-07-18 10:52:44 +02:00
modules adguardhome: Remove configuration from nix 2023-07-19 14:04:21 +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 Updatef flake.lock 2023-07-21 12:50:45 +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