No description
Find a file
Erwin Boskma 7855aa85ff
Update flake.lock
• Updated input 'disko':
    'github:nix-community/disko/da20419aabc6f3ea5088d3b6b1d132ea8a50619c' (2023-02-03)
  → 'github:nix-community/disko/b1a4ecb8ca5f9e5850514cc9ceef3c8aa2e97d6f' (2023-02-06)
• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/0d630ac0f6430797b885a86a6699e8c75093c513' (2023-02-04)
  → 'github:nix-community/emacs-overlay/cf267241b56b425d20faed46ab8e16dd0434a663' (2023-02-06)
• Updated input 'home-manager':
    'github:nix-community/home-manager/e2c1756e3ae001ca8696912016dd31cb1503ccf3' (2023-02-03)
  → 'github:nix-community/home-manager/c43d4a3d6d9ef8ddbe2438362f5c775b4186000b' (2023-02-05)
• Updated input 'hyprland':
    'github:Hyprwm/Hyprland/760b37f71d200643d3e267472e5cc290d38d1a53' (2023-02-04)
  → 'github:Hyprwm/Hyprland/4a5c3c4861fb503c7ecb6dcfc86aeb547aa3fb7f' (2023-02-05)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/06999209d7a0043d4372e38f57cffae00223d592' (2023-02-03)
  → 'github:nixos/nixpkgs/0591d6b57bfeb55dfeec99a671843337bc2c3323' (2023-02-04)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/1f1d13846ae88826391e5d65d85247a30982671b' (2023-02-04)
  → 'github:oxalica/rust-overlay/cccf15dce049eb0be24060ed461c251552b2fb4d' (2023-02-06)
• Updated input 'sops':
    'github:Mic92/sops-nix/a81ce6c961480b3b93498507074000c589bd9d60' (2023-02-01)
  → 'github:Mic92/sops-nix/4d16c18787ba8ff80c1ff8db25c5ca56f68ceed3' (2023-02-05)
• Updated input 'sops/nixpkgs-stable':
    'github:NixOS/nixpkgs/a3a1400571e3b9ccc270c2e8d36194cf05aab6ce' (2023-02-01)
  → 'github:NixOS/nixpkgs/e32c33811815ca4a535a16faf1c83eeb4493145b' (2023-02-05)
2023-02-06 13:47:45 +01:00
home-manager/modules polybar: Enable i3, pulseaudio and mpd support 2023-01-20 09:57:49 +01:00
machines Also add some power management to mimir 2023-01-31 17:20:23 +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 Powermanagement tweaking 2023-01-31 17:13:02 +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-06 13:47:45 +01:00
flake.nix Remove deploy-rs 2023-01-31 16:58:29 +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