No description
Find a file
Erwin Boskma ccaef414d2
Update flake.lock
• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/cfec7f9501cc0e001f49d725a7cd733af7deb2ed' (2023-03-31)
  → 'github:nix-community/emacs-overlay/dce15e40f673c6ba58fc40a0a59587f19476b20b' (2023-04-03)
• Updated input 'home-manager':
    'github:nix-community/home-manager/67b97020b6970d39b4126a7870063d11337ecb80' (2023-03-31)
  → 'github:nix-community/home-manager/ddd8866c0306c48f465e7f48432e6f1ecd1da7f8' (2023-04-01)
• Updated input 'microvm':
    'github:astro/microvm.nix/31d3c1a05fba175e5d96f16256296ad4088ca9f5' (2023-03-23)
  → 'github:astro/microvm.nix/f968ea83bdc542fd5e81e4bb1d726986098095b1' (2023-04-02)
• Removed input 'microvm/fenix'
• Removed input 'microvm/fenix/nixpkgs'
• Removed input 'microvm/fenix/rust-analyzer-src'
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/9a6aabc4740790ef3bbb246b86d029ccf6759658' (2023-03-29)
  → 'github:nixos/nixpkgs/e3652e0735fbec227f342712f180f4f21f0594f2' (2023-03-30)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/aa480d799023141e1b9e5d6108700de63d9ad002' (2023-03-31)
  → 'github:oxalica/rust-overlay/7ec2ff598a172c6e8584457167575b3a1a5d80d8' (2023-04-03)
• Updated input 'sops':
    'github:Mic92/sops-nix/5b26523e28989a7f56953b695184070c06335814' (2023-03-28)
  → 'github:Mic92/sops-nix/b93eb910f768f9788737bfed596a598557e5625d' (2023-04-02)
• Updated input 'sops/nixpkgs-stable':
    'github:NixOS/nixpkgs/da26ae9f6ce2c9ab380c0f394488892616fc5a6a' (2023-03-25)
  → 'github:NixOS/nixpkgs/c1e2efaca8d8a3db6a36f652765d6c6ba7bb8fae' (2023-04-01)
2023-04-03 14:35:09 +02:00
home-manager/modules Use carapace completer 2023-04-03 14:34:21 +02:00
machines Merge branch 'main' of git.datarift.nl:erwin/nixos-config 2023-03-30 10:09:23 +02:00
modules frigate: move mask from objects to motion, expand mask slightly 2023-04-03 09:50:20 +02:00
overlays Add commitgpt package 2022-12-05 11:02:12 +01:00
pkgs Update obs-backgroundremoval 2023-04-03 09:45:35 +02:00
users emacs: Follow emacs-29 branch instead of master 2023-04-03 09:54:23 +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-04-03 14:35:09 +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