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

• Updated input 'disko':
    'github:nix-community/disko/8c5d52db5690c72406b0cb13a5ac8554a287c93a' (2023-10-24)
  → 'github:nix-community/disko/944d338d24a9d043a3f7461c30ee6cfe4f9cca30' (2023-10-27)
• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/ad98977084414cf12564f5cc45b8f9aef217aafa' (2023-10-27)
  → 'github:nix-community/emacs-overlay/238d4cd5adee2a5dd893e27f0cf7e5af856d576e' (2023-10-30)
• Updated input 'emacs-overlay/nixpkgs-stable':
    'github:NixOS/nixpkgs/60b9db998f71ea49e1a9c41824d09aa274be1344' (2023-10-26)
  → 'github:NixOS/nixpkgs/1a3c95e3b23b3cdb26750621c08cc2f1560cb883' (2023-10-27)
• Updated input 'flake-parts':
    'github:hercules-ci/flake-parts/c9afaba3dfa4085dbd2ccb38dfade5141e33d9d4' (2023-10-03)
  → 'github:hercules-ci/flake-parts/f76e870d64779109e41370848074ac4eaa1606ec' (2023-10-29)
• Updated input 'home-manager':
    'github:nix-community/home-manager/09587fbbc6a669f7725613e044c2577dc5d43ab5' (2023-10-25)
  → 'github:nix-community/home-manager/8e5416b478e465985eec274bc3a018024435c106' (2023-10-30)
• Updated input 'microvm':
    'github:astro/microvm.nix/cd3a9cd0fcd30b55b9950ddcaec2d5271c0b78df' (2023-10-18)
  → 'github:astro/microvm.nix/dfe2d3db94e4829e317f97e3a095d6fd8b91f30c' (2023-10-28)
• Updated input 'naersk':
    'github:nix-community/naersk/06a99941d72e2202ed62b8aa08b9869817fea56f' (2023-10-24)
  → 'github:nix-community/naersk/aeb58d5e8faead8980a807c840232697982d47b9' (2023-10-27)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/8efd5d1e283604f75a808a20e6cde0ef313d07d4' (2023-10-24)
  → 'github:nixos/nixpkgs/0cbe9f69c234a7700596e943bfae7ef27a31b735' (2023-10-29)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/683fc51ea4e3282e856b215afd830ac9b39e5c7a' (2023-10-27)
  → 'github:oxalica/rust-overlay/ec19bd20af08f3b004089cc12ab54c823ed899b7' (2023-10-31)
• Updated input 'sops':
    'github:Mic92/sops-nix/014e44d334a39481223a5d163530d4c4ca2e75cb' (2023-10-25)
  → 'github:Mic92/sops-nix/632c3161a6cc24142c8e3f5529f5d81042571165' (2023-10-29)
• Updated input 'sops/nixpkgs-stable':
    'github:NixOS/nixpkgs/fb000224952bf7749a9e8b3779104ef7ea4465c8' (2023-10-21)
  → 'github:NixOS/nixpkgs/d87c5d8c41c9b3b39592563242f3a448b5cc4bc9' (2023-10-29)
2023-10-31 10:03:56 +01:00
home-manager/modules eww: Fix headset control widget 2023-10-30 09:35:14 +01:00
lib Initial refactoring 2023-10-14 16:55:13 +02:00
machines machines: Use Tailscale hostname 2023-10-30 09:35:42 +01:00
modules keycloak: Add keywind theme 2023-10-30 09:36:08 +01: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 work: Add chromium to main packages, add headsetcontrol to eww PATH 2023-10-30 09:37:06 +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 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-31 10:03:56 +01:00
flake.nix Configure colmena for remote deployments 2023-10-19 08:35:03 +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