No description
Find a file
Erwin Boskma 3f40ab0318
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/1046546c5d006fbe854e7944cd784b16e0d9494a' (2023-02-15)
• Updated input 'flake-utils':
    'github:numtide/flake-utils/5aed5285a952e0b949eb3ba02c12fa4fcfef535f' (2022-11-02)
  → 'github:numtide/flake-utils/3db36a8b464d0c4532ba1c7dda728f4576d6d073' (2023-02-13)
• Updated input 'hyprland':
    'github:Hyprwm/Hyprland/6b7e409f05536e45baa3dabeab0df77d05c9a96f' (2023-02-12)
  → 'github:Hyprwm/Hyprland/f37866eb7ecf0ddb9b1924cbbc15af90143a24d3' (2023-02-14)
• 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/1583077009b6ef4236d1899c0f43cf1ce1db8085' (2023-02-13)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/1bd5d7bb2f31cbc43fb8f722e3a39a45ee4dcec8' (2023-02-13)
  → 'github:oxalica/rust-overlay/a619538647bd03e3ee1d7b947f7c11ff289b376e' (2023-02-15)
2023-02-15 09:00:33 +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-15 09:00:33 +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