No description
Find a file
Erwin Boskma 71530aa3e6
Update flake.lock
• Updated input 'disko':
    'github:nix-community/disko/55eea2030a42845102334eb29f054f0c6604a32c' (2023-06-12)
  → 'github:nix-community/disko/fa4ec0bd26a103b3aa0d5a60f60399724face977' (2023-06-15)
• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/d248cdbbc9799d0cff8550e4fb4267bfac66e992' (2023-06-13)
  → 'github:nix-community/emacs-overlay/d9c74049fc523f59e153d21c5498dc94d884f3fc' (2023-06-15)
• Updated input 'emacs-overlay/nixpkgs-stable':
    'github:NixOS/nixpkgs/d3bb401dcfc5a46ce51cdfb5762e70cc75d082d2' (2023-06-10)
  → 'github:NixOS/nixpkgs/ddf4688dc7aeb14e8a3c549cb6aa6337f187a884' (2023-06-14)
• Updated input 'home-manager':
    'github:nix-community/home-manager/d437f0d4e0f72fe76688142e954a4a9b61ac9833' (2023-06-13)
  → 'github:nix-community/home-manager/e0034971f9def16bbc32124147787bc0f09f0e59' (2023-06-14)
• Updated input 'microvm':
    'github:astro/microvm.nix/551239936a1c86479f6026658c4d1f1a3635d286' (2023-06-11)
  → 'github:astro/microvm.nix/8560a69ca9da2da59f6e05995348b24abba121e5' (2023-06-14)
• Updated input 'nil':
    'github:oxalica/nil/119e56eb4dfcd9fcc1bb808bf68ae3e7a3091409' (2023-06-11)
  → 'github:oxalica/nil/1edf2ad0ae832df55400c04b6c6e26cf066b133a' (2023-06-15)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/75a5ebf473cd60148ba9aec0d219f72e5cf52519' (2023-06-11)
  → 'github:nixos/nixpkgs/0eeebd64de89e4163f4d3cf34ffe925a5cf67a05' (2023-06-12)
• Updated input 'pre-commit-hooks':
    'github:cachix/pre-commit-hooks.nix/182af51202998af5b64ddecaa7ff9be06425399b' (2023-06-08)
  → 'github:cachix/pre-commit-hooks.nix/5b6b54d3f722aa95cbf4ddbe35390a0af8c0015a' (2023-06-13)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/e279547de84413ca1a65cec3f0f879709c8c65eb' (2023-06-13)
  → 'github:oxalica/rust-overlay/5c2b97c0a9bc5217fc3dfb1555aae0fb756d99f9' (2023-06-15)
2023-06-15 10:18:48 +02:00
home-manager/modules emacs: Add python-mode and jinja2-mode 2023-06-15 10:06:50 +02:00
machines Fix gitea backups 2023-06-08 10:03:45 +02:00
modules Use latest version of nix 2023-06-08 16:56: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 gnome-keyring in home-manager 2023-06-08 10:04:21 +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-06-15 10:18:48 +02:00
flake.nix Clean up flake.nix 2023-06-01 23:36:02 +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