No description
Find a file
Erwin Boskma e8d9859bfa
flake.lock: Update
Flake lock file updates:

• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/a99d70addcc094dfb2c93d74073850c11c0b5a7f' (2023-12-29)
  → 'github:nix-community/emacs-overlay/285a626fe34c40d6f3e3f63f69f4ceb0cfc29e80' (2023-12-30)
• Updated input 'nixos-hardware':
    'github:NixOS/nixos-hardware/1bace8cedd4fa4ea9efb5ea17a06b9d92af86206' (2023-12-29)
  → 'github:NixOS/nixos-hardware/22ae59fec26591ef72ce4ccb5538c42c5f090fe3' (2023-12-29)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/5f64a12a728902226210bf01d25ec6cbb9d9265b' (2023-12-24)
  → 'github:nixos/nixpkgs/cfc3698c31b1fb9cdcf10f36c9643460264d0ca8' (2023-12-27)
• Updated input 'pre-commit-hooks':
    'github:cachix/pre-commit-hooks.nix/7f35ec30d16b38fe0eed8005933f418d1a4693ee' (2023-12-24)
  → 'github:cachix/pre-commit-hooks.nix/9d3d7e18c6bc4473d7520200d4ddab12f8402d38' (2023-12-30)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/2b24e1f369f00f5ae9876e15e12f77e12c9c2374' (2023-12-29)
  → 'github:oxalica/rust-overlay/319f57cd2c34348c55970a4bf2b35afe82088681' (2023-12-30)
2023-12-30 17:12:17 +01:00
home-manager/modules eww: Fixes in config 2023-12-21 16:36:50 +01:00
lib Initial refactoring 2023-10-14 16:55:13 +02:00
machines mimir: Enable AppArmor 2023-12-20 11:46:59 +01:00
modules kanata: Passthrough right alt 2023-12-20 11:41:08 +01:00
overlays incus-ui: init 2023-12-23 20:20:04 +01:00
pkgs incus-ui: init 2023-12-23 20:20:04 +01:00
users work: Add livebook 2023-12-08 16:40:33 +01:00
wallpapers Add Space Shuttle Endeavour wallpaper 2023-10-05 15:02:14 +02:00
.envrc Load .env file 2023-04-24 08:25:18 +02:00
.gitignore Add emacs desktop file to .gitignore 2023-09-11 20:19:13 +02:00
.projectile Update flake.lock, update kernel version 2022-03-23 15:42:32 +01:00
.sops.yaml sops: Add secrets file for mimir 2023-12-20 09:42:49 +01:00
flake.lock flake.lock: Update 2023-12-30 17:12:17 +01:00
flake.nix incus-ui: init 2023-12-23 20:20:04 +01:00
Justfile Justfile: add update task 2023-10-09 14:35:02 +02:00
krops.nix Add pre-commit hooks and fix style issues 2022-11-19 20:00:54 +01:00
README.org Replace exa with eza, because the former is unmaintained 2023-09-11 20:11:08 +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 eza 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