No description
Find a file
Erwin Boskma 04cb6a0c4c
Some checks failed
/ check (push) Has been cancelled
flake.lock: Update
Flake lock file updates:

• Updated input 'disko':
    'github:nix-community/disko/1ae1f57dad13595600dd57b6a55fcbaef6673804' (2024-02-19)
  → 'github:nix-community/disko/23d308f0059955e3719efc81a34d1fc0369fbb74' (2024-02-22)
• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/39a63475945fea0d8b4e4aeb351f392c1c3beeab' (2024-02-21)
  → 'github:nix-community/emacs-overlay/841abef01afbd293aa80130bcbd811e4102d5770' (2024-02-23)
• Updated input 'emacs-overlay/nixpkgs-stable':
    'github:NixOS/nixpkgs/e0da498ad77ac8909a980f07eff060862417ccf7' (2024-02-18)
  → 'github:NixOS/nixpkgs/3cb4ae6689d2aa3f363516234572613b31212b78' (2024-02-22)
• Updated input 'home-manager':
    'github:nix-community/home-manager/517601b37c6d495274454f63c5a483c8e3ca6be1' (2024-02-20)
  → 'github:nix-community/home-manager/0e0e9669547e45ea6cca2de4044c1a384fd0fe55' (2024-02-22)
• Updated input 'microvm':
    'github:astro/microvm.nix/c3f2eb54f96f56ec93fcccc7f14808f10a61e6ca' (2024-02-20)
  → 'github:astro/microvm.nix/5544916016482c91874b0b25fd069a6e041c2715' (2024-02-22)
• Updated input 'microvm/spectrum':
    'git+https://spectrum-os.org/git/spectrum?ref=refs/heads/main&rev=97e2f3429ee61dc37664b4d096b2fec48a57b691' (2023-12-22)
  → 'git+https://spectrum-os.org/git/spectrum?ref=refs/heads/main&rev=6d0e73864d28794cdbd26ab7b37259ab0e1e044c' (2024-02-19)
• Updated input 'nixos-hardware':
    'github:NixOS/nixos-hardware/106d3fec43bcea19cb2e061ca02531d54b542ce3' (2024-02-16)
  → 'github:NixOS/nixos-hardware/3f7d0bca003eac1a1a7f4659bbab9c8f8c2a0958' (2024-02-22)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/3d6647bf9d1f8e537b0d026c51ea25c0cdd92055' (2024-02-21)
  → 'github:oxalica/rust-overlay/67853eda5dfe64922b9deb0ebc246a846fe177c7' (2024-02-23)
2024-02-23 11:36:47 +01:00
.forgejo/workflows Add Forgejo workflow to check flake 2024-01-25 12:42:14 +01:00
home-manager/modules emacs: Switch to nixfmt-rfc-style for formatting nix files 2024-02-23 11:35:56 +01:00
lib Run nixfmt 2024-02-05 11:46:52 +01:00
machines mimir: Add iwd 2024-02-23 11:33:18 +01:00
modules nix: Increase garbage collection to once a week 2024-02-09 20:39:15 +01:00
overlays Run nixfmt 2024-02-05 11:46:52 +01:00
pkgs incus-ui: 0.5 -> 0.6 2024-02-22 11:31:13 +01:00
users Add nheko Matrix client 2024-02-23 11:36:15 +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
.gitattributes Mark flake.lock as binary for merge conflicts 2024-01-23 13:40:29 +01:00
.gitignore Remove terraform stuff 2024-01-09 22:25:14 +01:00
.projectile Update flake.lock, update kernel version 2022-03-23 15:42:32 +01:00
.sops.yaml gitea-runner: Init system 2024-01-24 17:11:53 +01:00
flake.lock flake.lock: Update 2024-02-23 11:36:47 +01:00
flake.nix Switch to nixfmt-rfc-style formatter 2024-02-05 11:10:13 +01:00
Justfile Justfile: add update task 2023-10-09 14:35:02 +02:00
krops.nix Run nixfmt 2024-02-05 11:46:52 +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