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

• Updated input 'disko':
    'github:nix-community/disko/b2ea7d62581fa50d3e19a949b85fe04c1e8d7384' (2023-09-05)
  → 'github:nix-community/disko/f9907fcf6df79a76ea7e3a3afe9340a672cb9c6e' (2023-09-09)
• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/f5c2366c5d8f241b8c66e4b18be8ad25ffdb4e48' (2023-09-06)
  → 'github:nix-community/emacs-overlay/2276b94b3d43467372de17708ab3468a5821fcfc' (2023-09-09)
• Updated input 'emacs-overlay/nixpkgs-stable':
    'github:NixOS/nixpkgs/da5adce0ffaff10f6d0fee72a02a5ed9d01b52fc' (2023-09-03)
  → 'github:NixOS/nixpkgs/4f77ea639305f1de0a14d9d41eef83313360638c' (2023-09-07)
• Updated input 'home-manager':
    'github:nix-community/home-manager/b22d7bab30076bbb73744867d6c5bf7d6380570c' (2023-09-06)
  → 'github:nix-community/home-manager/19c6a4081b14443420358262f8416149bd79561a' (2023-09-08)
• Updated input 'microvm':
    'github:astro/microvm.nix/8d2a99baa151bc120b3f062aadbfaca7a942c23a' (2023-09-05)
  → 'github:astro/microvm.nix/25460d97cffffe24f565a9d654c4aab1848598b4' (2023-09-08)
• Updated input 'naersk':
    'github:nix-community/naersk/78789c30d64dea2396c9da516bbcc8db3a475207' (2023-08-18)
  → 'github:nix-community/naersk/3f976d822b7b37fc6fb8e6f157c2dd05e7e94e89' (2023-09-07)
• Updated input 'nil':
    'github:oxalica/nil/4bdcfcfe38cfcb386142e043392afbfa542665dd' (2023-09-03)
  → 'github:oxalica/nil/4775e34c30f6101a9bb4364a0c7e4aae4ae43f11' (2023-09-08)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/3c15feef7770eb5500a4b8792623e2d6f598c9c1' (2023-09-04)
  → 'github:nixos/nixpkgs/0bffda19b8af722f8069d09d8b6a24594c80b352' (2023-09-06)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/a8b4bb4cbb744baaabc3e69099f352f99164e2c1' (2023-09-06)
  → 'github:oxalica/rust-overlay/1b4fad9dccece45c25b9ebda607427d69a8f1eae' (2023-09-09)
2023-09-09 22:24:44 +02:00
home-manager/modules eww: Start from sway instead of systemd 2023-09-06 17:00:41 +02:00
machines frigate: Remove some unused configuration 2023-09-06 16:58:54 +02:00
modules greetd: Switch to elementary theme 2023-09-06 17:01:26 +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 work: Switch to elementary theme 2023-08-30 12:28:25 +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 Use caddy as proxy in place of nginx-proxy-manager 2023-08-10 16:43:46 +02:00
flake.lock flake.lock: Update 2023-09-09 22:24:44 +02:00
flake.nix Use caddy as proxy in place of nginx-proxy-manager 2023-08-10 16:43:46 +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