No description
Find a file
Erwin Boskma 5b732ff85a
Update flake.lock
• Updated input 'disko':
    'github:nix-community/disko/eb5def310c7331545e72090b4cda6cb0255b870d' (2023-03-24)
  → 'github:nix-community/disko/4d9c89abde7ccedf743a01119d41fb880793bcba' (2023-03-30)
• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/f03b172233e1bf1fb2ffbc543b86aae00fbad444' (2023-03-24)
  → 'github:nix-community/emacs-overlay/cfec7f9501cc0e001f49d725a7cd733af7deb2ed' (2023-03-31)
• Updated input 'home-manager':
    'github:nix-community/home-manager/363c46b2480f1b73ec37cf68caac61f5daa82a2e' (2023-03-22)
  → 'github:nix-community/home-manager/67b97020b6970d39b4126a7870063d11337ecb80' (2023-03-31)
• Updated input 'nil':
    'github:oxalica/nil/73fda843416741f870a97c23867f27efb9fd9f20' (2023-03-24)
  → 'github:oxalica/nil/0718fca59b82e53aef07699db7e1bbd86ba8dacf' (2023-03-30)
• Updated input 'nixos-hardware':
    'github:NixOS/nixos-hardware/648021dcb2b65498eed3ea3a7339cdfc3bea4d82' (2023-03-23)
  → 'github:NixOS/nixos-hardware/a6aa8174fa61e55bd7e62d35464d3092aefe0421' (2023-03-29)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/19cf008bb18e47b6e3b4e16e32a9a4bdd4b45f7e' (2023-03-21)
  → 'github:nixos/nixpkgs/9a6aabc4740790ef3bbb246b86d029ccf6759658' (2023-03-29)
• Updated input 'nomachine':
    'github:rytec-nl/nixpkgs/a312461214aa64253b74bd31f0d4a32cd029a932' (2022-08-04)
  → 'github:rytec-nl/nixpkgs/1378a89625f1f98e77920dc3e6f899a16f20f9be' (2023-03-26)
• Updated input 'pre-commit-hooks':
    'github:cachix/pre-commit-hooks.nix/32b1dbedfd77892a6e375737ef04d8efba634e9e' (2023-03-16)
  → 'github:cachix/pre-commit-hooks.nix/29dbe1efaa91c3a415d8b45d62d48325a4748816' (2023-03-30)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/afbdcf305fd6f05f708fe76d52f24d37d066c251' (2023-03-24)
  → 'github:oxalica/rust-overlay/aa480d799023141e1b9e5d6108700de63d9ad002' (2023-03-31)
• Updated input 'sops':
    'github:Mic92/sops-nix/d8827a8368c307fbc6ed594c9a31d619e7360bed' (2023-03-21)
  → 'github:Mic92/sops-nix/5b26523e28989a7f56953b695184070c06335814' (2023-03-28)
• Updated input 'sops/nixpkgs-stable':
    'github:NixOS/nixpkgs/c3912035d00ef755ab19394488b41feab95d2e40' (2023-03-18)
  → 'github:NixOS/nixpkgs/da26ae9f6ce2c9ab380c0f394488892616fc5a6a' (2023-03-25)
2023-03-31 15:53:33 +02:00
home-manager/modules Use built-in tree-sitter on emacs >=29, minor cleanup 2023-03-31 14:41:09 +02:00
machines Disable hidpi because it messes with fonts 2023-03-29 16:19:20 +02:00
modules Move appimage-run to desktop module 2023-03-24 14:24:42 +01:00
overlays Add commitgpt package 2022-12-05 11:02:12 +01:00
pkgs Update commitgpt 2022-12-07 20:26:29 +01:00
users Add nushell and wine to work profile 2023-03-29 16:34:30 +02:00
.envrc Secrets with sops 2021-11-26 22:21:16 +01: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 Update frigate key 2023-03-24 14:23:50 +01:00
flake.lock Update flake.lock 2023-03-31 15:53:33 +02:00
flake.nix Remove hyprland 2023-03-15 12:03:15 +01: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