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

• Updated input 'disko':
    'github:nix-community/disko/3c41ae36ff12afbada9396c7d8282c2c74f74e06' (2023-10-12)
  → 'github:nix-community/disko/6ad5c9c17cbd5514ce0cc2692dd82dd6d8e5d879' (2023-10-13)
• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/7722972664332248a4240cd40f6e55994ef1ddfa' (2023-10-12)
  → 'github:nix-community/emacs-overlay/fa2c99af244d425c43ef768cec348c995a98a1a5' (2023-10-14)
• Updated input 'ha-now-playing':
    'git+https://git.datarift.nl/erwin/ha-now-playing.git?ref=main&rev=8f1b9b7f9c10bdf0992547910821357038e2ec85' (2023-09-29)
  → 'git+https://git.datarift.nl/erwin/ha-now-playing.git?ref=main&rev=171c65e613914d00f52c326a3c375ee954daec45' (2023-10-14)
• Updated input 'ha-now-playing/crane':
    'github:ipetkov/crane/3de322e06fc88ada5e3589dc8a375b73e749f512' (2023-09-23)
  → 'github:ipetkov/crane/117ac48319c0dbcff5540781c7c5b18166e33f6a' (2023-10-13)
• Updated input 'ha-now-playing/crane/flake-compat':
    'github:edolstra/flake-compat/35bb57c0c8d8b62bbfd284272c928ceb64ddbde9' (2023-01-17)
  → 'github:edolstra/flake-compat/4f910c9827911b1ec2bf26b5a062cd09f8d89f85' (2023-10-02)
• Updated input 'microvm':
    'github:astro/microvm.nix/2c28afc481d47c551ab71d96130d938cdde59933' (2023-10-10)
  → 'github:astro/microvm.nix/38e15eee892e1866f483467de51025dbef473306' (2023-10-12)
• Updated input 'nixos-hardware':
    'github:NixOS/nixos-hardware/d6b554a85caac840430a822aae963c811e9c7e26' (2023-10-11)
  → 'github:NixOS/nixos-hardware/fb6af288f6cf0f00d3af60cf9d5110433b954565' (2023-10-12)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/f99e5f03cc0aa231ab5950a15ed02afec45ed51a' (2023-10-09)
  → 'github:nixos/nixpkgs/5e4c2ada4fcd54b99d56d7bd62f384511a7e2593' (2023-10-11)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/aa7584f5bbf5947716ad8ec14eccc0334f0d28f0' (2023-10-12)
  → 'github:oxalica/rust-overlay/dce60ca7fca201014868c08a612edb73a998310f' (2023-10-14)
2023-10-14 16:58:34 +02:00
home-manager/modules Add nnn 2023-10-11 08:16:38 +02:00
lib Initial refactoring 2023-10-14 16:55:13 +02:00
machines mimir: Bind guacd on localhost (the default) 2023-10-09 16:27:50 +02:00
modules Tweak kanata config 2023-10-14 16:56:18 +02:00
overlays Remove commitgpt 2023-05-22 10:27:21 +02:00
pkgs Initial transfer to sway on work PC (#2) 2023-09-29 11:52:45 +02:00
users Tweak kanata config 2023-10-14 16:56:18 +02: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 Use caddy as proxy in place of nginx-proxy-manager 2023-08-10 16:43:46 +02:00
flake.lock flake.lock: Update 2023-10-14 16:58:34 +02:00
flake.nix Initial refactoring 2023-10-14 16:55:13 +02: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