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

• Updated input 'disko':
    'github:nix-community/disko/f9907fcf6df79a76ea7e3a3afe9340a672cb9c6e' (2023-09-09)
  → 'github:nix-community/disko/b54e2dc988b34fbad1a1180fe68b573a9d080df5' (2023-09-11)
• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/2276b94b3d43467372de17708ab3468a5821fcfc' (2023-09-09)
  → 'github:nix-community/emacs-overlay/42157ddb4e4a255d16e6a50a792893cbd1a3098c' (2023-09-11)
• Updated input 'emacs-overlay/nixpkgs-stable':
    'github:NixOS/nixpkgs/4f77ea639305f1de0a14d9d41eef83313360638c' (2023-09-07)
  → 'github:NixOS/nixpkgs/4c8cf44c5b9481a4f093f1df3b8b7ba997a7c760' (2023-09-10)
• Updated input 'home-manager':
    'github:nix-community/home-manager/19c6a4081b14443420358262f8416149bd79561a' (2023-09-08)
  → 'github:nix-community/home-manager/f7848d3e5f15ed02e3f286029697e41ee31662d7' (2023-09-10)
• Updated input 'microvm':
    'github:astro/microvm.nix/25460d97cffffe24f565a9d654c4aab1848598b4' (2023-09-08)
  → 'github:astro/microvm.nix/c2ee8fd0fef00b3a019b08c42976ecef1e1cd103' (2023-09-10)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/0bffda19b8af722f8069d09d8b6a24594c80b352' (2023-09-06)
  → 'github:nixos/nixpkgs/db9208ab987cdeeedf78ad9b4cf3c55f5ebd269b' (2023-09-08)
• Updated input 'pre-commit-hooks':
    'github:cachix/pre-commit-hooks.nix/7e3517c03d46159fdbf8c0e5c97f82d5d4b0c8fa' (2023-08-17)
  → 'github:cachix/pre-commit-hooks.nix/4f883a76282bc28eb952570afc3d8a1bf6f481d7' (2023-09-10)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/1b4fad9dccece45c25b9ebda607427d69a8f1eae' (2023-09-09)
  → 'github:oxalica/rust-overlay/6c520f2e31f4bebeb29cc4563543de7187013575' (2023-09-11)
2023-09-11 10:52:43 +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-11 10:52:43 +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