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

• Updated input 'disko':
    'github:nix-community/disko/19b62324663b6b9859caf7f335d232cf4f1f6a32' (2023-09-28)
  → 'github:nix-community/disko/646ee25c25fffee122a66282861f5f56ad3e0fd9' (2023-10-02)
• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/5f14ec7a4977810a06f8eacb0169374fb4e282e9' (2023-10-01)
  → 'github:nix-community/emacs-overlay/205b18fcd20edad37e79c8598f6a799b70a6d4a3' (2023-10-03)
• Updated input 'emacs-overlay/nixpkgs-stable':
    'github:NixOS/nixpkgs/5cfafa12d57374f48bcc36fda3274ada276cf69e' (2023-09-27)
  → 'github:NixOS/nixpkgs/32dcb45f66c0487e92db8303a798ebc548cadedc' (2023-09-30)
• Updated input 'flake-parts':
    'github:hercules-ci/flake-parts/7f53fdb7bdc5bb237da7fefef12d099e4fd611ca' (2023-09-01)
  → 'github:hercules-ci/flake-parts/21928e6758af0a258002647d14363d5ffc85545b' (2023-10-01)
• Updated input 'flake-parts/nixpkgs-lib':
    'github:NixOS/nixpkgs/3e52e76b70d5508f3cec70b882a29199f4d1ee85?dir=lib' (2023-08-31)
  → 'github:NixOS/nixpkgs/f5892ddac112a1e9b3612c39af1b72987ee5783a?dir=lib' (2023-09-29)
• Updated input 'microvm':
    'github:astro/microvm.nix/95f24548fb7c31257eaf37c86a1e37de21a73645' (2023-09-30)
  → 'github:astro/microvm.nix/c28a0e0dae496d7d0e29c8beec5c7e98e05e1c2c' (2023-10-02)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/fc6fe50d9a4540a1111731baaa00f207301fdeb7' (2023-10-01)
  → 'github:oxalica/rust-overlay/611ccdceed92b4d94ae75328148d84ee4a5b462d' (2023-10-03)
• Updated input 'sops':
    'github:Mic92/sops-nix/2f375ed8702b0d8ee2430885059d5e7975e38f78' (2023-09-21)
  → 'github:Mic92/sops-nix/746c7fa1a64c1671a4bf287737c27fdc7101c4c2' (2023-10-03)
• Updated input 'sops/nixpkgs-stable':
    'github:NixOS/nixpkgs/596611941a74be176b98aeba9328aa9d01b8b322' (2023-09-16)
  → 'github:NixOS/nixpkgs/dbe90e63a36762f1fbde546e26a84af774a32455' (2023-10-01)
2023-10-03 10:47:18 +02:00
home-manager/modules Initial transfer to sway on work PC (#2) 2023-09-29 11:52:45 +02:00
machines Add udev rules for sandisk USB drive 2023-09-29 11:53:36 +02:00
modules Keep nix at 2.17 until issue is fixed (see comment) 2023-10-02 09:44:18 +02: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: set gtk color-scheme through dconf 2023-10-01 19:33:28 +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-03 10:47:18 +02:00
flake.nix Initial transfer to sway on work PC (#2) 2023-09-29 11:52:45 +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 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