No description
Find a file
Erwin Boskma 3e796d62a5
Update flake.lock
• Updated input 'disko':
    'github:nix-community/disko/072aa7879a537f2f1e8d44108dc6f30990f7297c' (2023-02-13)
  → 'github:nix-community/disko/9afae0ba3685656cbe1910b33fad758dd483137f' (2023-02-14)
• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/09ebba158540ba3171b5f319b71427b51db8794b' (2023-02-13)
  → 'github:nix-community/emacs-overlay/8e8c7ab6874c97b4d1c23a5a204b6743b40cee78' (2023-02-16)
• Updated input 'flake-utils':
    'github:numtide/flake-utils/5aed5285a952e0b949eb3ba02c12fa4fcfef535f' (2022-11-02)
  → 'github:numtide/flake-utils/3db36a8b464d0c4532ba1c7dda728f4576d6d073' (2023-02-13)
• Updated input 'home-manager':
    'github:nix-community/home-manager/2dce7f1a55e785a22d61668516df62899278c9e4' (2023-02-09)
  → 'github:nix-community/home-manager/da72e6fc6b7dc0c3f94edbd310aae7cd95c678b5' (2023-02-14)
• Updated input 'hyprland':
    'github:Hyprwm/Hyprland/6b7e409f05536e45baa3dabeab0df77d05c9a96f' (2023-02-12)
  → 'github:Hyprwm/Hyprland/ab6a092dbc99bfdb2cd40f46e2f34f74cce88c15' (2023-02-15)
• Updated input 'nil':
    'github:oxalica/nil/ce2e0b5d60fe497134050796f7d12ffb6b50eb28' (2023-02-11)
  → 'github:oxalica/nil/944d5c335531778a1d7b54a97bf7fb5ec0c3e976' (2023-02-14)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/e5530aba13caff5a4f41713f1265b754dc2abfd8' (2023-02-11)
  → 'github:nixos/nixpkgs/545c7a31e5dedea4a6d372712a18e00ce097d462' (2023-02-13)
• Updated input 'pre-commit-hooks':
    'github:cachix/pre-commit-hooks.nix/15f2da96967d4c828ae678af50f75214372fd3ce' (2023-02-12)
  → 'github:cachix/pre-commit-hooks.nix/5f0cba88ac4d6dd8cad5c6f6f1540b3d6a21a798' (2023-02-16)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/1bd5d7bb2f31cbc43fb8f722e3a39a45ee4dcec8' (2023-02-13)
  → 'github:oxalica/rust-overlay/3bab7ae4a80de02377005d611dc4b0a13082aa7c' (2023-02-16)
2023-02-16 08:17:30 +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-16 08:17:30 +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