No description
Find a file
Erwin Boskma 70a51c21a9
Update flake.lock
• Updated input 'disko':
    'github:nix-community/disko/b1a4ecb8ca5f9e5850514cc9ceef3c8aa2e97d6f' (2023-02-06)
  → 'github:nix-community/disko/072aa7879a537f2f1e8d44108dc6f30990f7297c' (2023-02-13)
• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/cf267241b56b425d20faed46ab8e16dd0434a663' (2023-02-06)
  → 'github:nix-community/emacs-overlay/09ebba158540ba3171b5f319b71427b51db8794b' (2023-02-13)
• Updated input 'home-manager':
    'github:nix-community/home-manager/c43d4a3d6d9ef8ddbe2438362f5c775b4186000b' (2023-02-05)
  → 'github:nix-community/home-manager/2dce7f1a55e785a22d61668516df62899278c9e4' (2023-02-09)
• Updated input 'hyprland':
    'github:Hyprwm/Hyprland/4a5c3c4861fb503c7ecb6dcfc86aeb547aa3fb7f' (2023-02-05)
  → 'github:Hyprwm/Hyprland/6b7e409f05536e45baa3dabeab0df77d05c9a96f' (2023-02-12)
• Updated input 'microvm':
    'github:astro/microvm.nix/0a3d48e06b8c04beb3de0a3283bd1ef29fe4a47d' (2023-01-26)
  → 'github:astro/microvm.nix/5882c4da762d1d5414aaa599f8f671e58100bccf' (2023-02-09)
• Updated input 'nil':
    'github:oxalica/nil/1a15174958729ca578db517e735479ed5fb963db' (2023-02-04)
  → 'github:oxalica/nil/ce2e0b5d60fe497134050796f7d12ffb6b50eb28' (2023-02-11)
• Updated input 'nixos-hardware':
    'github:NixOS/nixos-hardware/b7ac0a56029e4f9e6743b9993037a5aaafd57103' (2023-01-24)
  → 'github:NixOS/nixos-hardware/44ae00e02e8036a66c08f4decdece7e3bbbefee2' (2023-02-09)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/0591d6b57bfeb55dfeec99a671843337bc2c3323' (2023-02-04)
  → 'github:nixos/nixpkgs/e5530aba13caff5a4f41713f1265b754dc2abfd8' (2023-02-11)
• Updated input 'pre-commit-hooks':
    'github:cachix/pre-commit-hooks.nix/5668d079583a5b594cb4e0cc0e6d84f1b93da7ae' (2023-02-02)
  → 'github:cachix/pre-commit-hooks.nix/15f2da96967d4c828ae678af50f75214372fd3ce' (2023-02-12)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/cccf15dce049eb0be24060ed461c251552b2fb4d' (2023-02-06)
  → 'github:oxalica/rust-overlay/1bd5d7bb2f31cbc43fb8f722e3a39a45ee4dcec8' (2023-02-13)
• Updated input 'sops':
    'github:Mic92/sops-nix/4d16c18787ba8ff80c1ff8db25c5ca56f68ceed3' (2023-02-05)
  → 'github:Mic92/sops-nix/c5dab21d8706afc7ceb05c23d4244dcb48d6aade' (2023-02-12)
• Updated input 'sops/nixpkgs-stable':
    'github:NixOS/nixpkgs/e32c33811815ca4a535a16faf1c83eeb4493145b' (2023-02-05)
  → 'github:NixOS/nixpkgs/d863ca850a06d91365c01620dcac342574ecf46f' (2023-02-12)
2023-02-13 08:29:18 +01:00
home-manager/modules Tweak dunst notification style 2023-02-03 14:32:46 +01:00
machines Cleanup and minor tweaks 2023-02-13 08:27:46 +01:00
modules Powermanagement tweaking 2023-01-31 17:13:02 +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 Cleanup and minor tweaks 2023-02-13 08:27:46 +01: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 Add minio stuff 2023-01-06 00:11:11 +01:00
flake.lock Update flake.lock 2023-02-13 08:29:18 +01:00
flake.nix Add taplo to devshell 2023-02-03 14:32:00 +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