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

• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/238d4cd5adee2a5dd893e27f0cf7e5af856d576e' (2023-10-30)
  → 'github:nix-community/emacs-overlay/8f964138749616526f0d2792e05e06aa5d509741' (2023-11-03)
• Updated input 'emacs-overlay/nixpkgs-stable':
    'github:NixOS/nixpkgs/1a3c95e3b23b3cdb26750621c08cc2f1560cb883' (2023-10-27)
  → 'github:NixOS/nixpkgs/34bdaaf1f0b7fb6d9091472edc968ff10a8c2857' (2023-11-01)
• Updated input 'flake-parts':
    'github:hercules-ci/flake-parts/f76e870d64779109e41370848074ac4eaa1606ec' (2023-10-29)
  → 'github:hercules-ci/flake-parts/8c9fa2545007b49a5db5f650ae91f227672c3877' (2023-11-01)
• Updated input 'flake-parts/nixpkgs-lib':
    'github:NixOS/nixpkgs/f5892ddac112a1e9b3612c39af1b72987ee5783a?dir=lib' (2023-09-29)
  → 'github:NixOS/nixpkgs/0cbe9f69c234a7700596e943bfae7ef27a31b735?dir=lib' (2023-10-29)
• Updated input 'home-manager':
    'github:nix-community/home-manager/8e5416b478e465985eec274bc3a018024435c106' (2023-10-30)
  → 'github:nix-community/home-manager/48b0a30202516e25d9885525fbb200a045f23f26' (2023-11-01)
• Updated input 'microvm':
    'github:astro/microvm.nix/dfe2d3db94e4829e317f97e3a095d6fd8b91f30c' (2023-10-28)
  → 'github:astro/microvm.nix/d07c3efd42a93d576da2ba6569818b6edb0cbe18' (2023-11-02)
• Updated input 'nixos-hardware':
    'github:NixOS/nixos-hardware/80d98a7d55c6e27954a166cb583a41325e9512d7' (2023-10-23)
  → 'github:NixOS/nixos-hardware/11d50c5d52472ed40d3cb109daad03c836d2b328' (2023-11-01)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/0cbe9f69c234a7700596e943bfae7ef27a31b735' (2023-10-29)
  → 'github:nixos/nixpkgs/fa804edfb7869c9fb230e174182a8a1a7e512c40' (2023-11-02)
• Updated input 'pre-commit-hooks':
    'github:cachix/pre-commit-hooks.nix/bd38df3d508dfcdff52cd243d297f218ed2257bf' (2023-10-25)
  → 'github:cachix/pre-commit-hooks.nix/dec10399e5b56aa95fcd530e0338be72ad6462a0' (2023-11-01)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/ec19bd20af08f3b004089cc12ab54c823ed899b7' (2023-10-31)
  → 'github:oxalica/rust-overlay/321affd863e3e4e669990a1db5fdabef98387b95' (2023-11-03)
• Updated input 'sops':
    'github:Mic92/sops-nix/632c3161a6cc24142c8e3f5529f5d81042571165' (2023-10-29)
  → 'github:Mic92/sops-nix/84d6b27dc71ac02422e192c35806d06915d2bf67' (2023-11-02)
2023-11-03 09:03:58 +01:00
home-manager/modules nushell: Update config for 0.86 2023-11-01 09:31:00 +01:00
lib Initial refactoring 2023-10-14 16:55:13 +02:00
machines loki: Create k3s cluster with microvm 2023-11-03 00:08:00 +01:00
modules keycloak: Add docker token auth 2023-11-01 09:31:30 +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 home: Remove FreeCAD, add element-desktop 2023-11-01 09:31:48 +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 loki: Create k3s cluster with microvm 2023-11-03 00:08:00 +01:00
flake.lock flake.lock: Update 2023-11-03 09:03:58 +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