No description
Find a file
Erwin Boskma 6f2114c312
Update flake.lock
• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/5959aa48e3406a4f74281e7dc6136460d0a55a2b' (2023-01-17)
  → 'github:nix-community/emacs-overlay/c02cfe11649018c3e31c8c4a4d91233b1e62d487' (2023-01-18)
• Updated input 'home-manager':
    'github:nix-community/home-manager/bd3efacb82c721edad1ce9eda583df5fb62ab00a' (2023-01-17)
  → 'github:nix-community/home-manager/2c29ae48f9a149151bdd82f429ac61d4412c312a' (2023-01-18)
• Updated input 'hyprland':
    'github:Hyprwm/Hyprland/c31c627cf85ea4fd40c1647c84d89b5e6f186785' (2023-01-17)
  → 'github:Hyprwm/Hyprland/428063ff2304962387803fd59e5da8b9b82710cc' (2023-01-18)
• Updated input 'pre-commit-hooks':
    'github:cachix/pre-commit-hooks.nix/496e4505c2ddf5f205242eae8064d7d89cd976c0' (2023-01-13)
  → 'github:cachix/pre-commit-hooks.nix/3e42a77571cc0463efa470dbcffa063977a521ab' (2023-01-18)
• Updated input 'pre-commit-hooks/flake-compat':
    'github:edolstra/flake-compat/009399224d5e398d03b22badca40a37ac85412a1' (2022-11-17)
  → 'github:edolstra/flake-compat/35bb57c0c8d8b62bbfd284272c928ceb64ddbde9' (2023-01-17)
• Updated input 'pre-commit-hooks/nixpkgs-stable':
    'github:NixOS/nixpkgs/d513b448cc2a6da2c8803e3c197c9fc7e67b19e3' (2022-12-17)
  → 'github:NixOS/nixpkgs/2f9fd351ec37f5d479556cd48be4ca340da59b8f' (2023-01-15)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/4e0f9b8a5102387f8d19901bced16a256a6ccdc7' (2023-01-17)
  → 'github:oxalica/rust-overlay/eecc44934a0f6c02c02856b38bd3b6af3bec0870' (2023-01-18)
2023-01-18 22:15:33 +01:00
home-manager/modules Change emoji font for foot 2023-01-17 23:55:36 +01:00
machines Set cpu frequency governor to 'ondemand' 2023-01-17 23:55:51 +01:00
modules Initial virtualisation server setup 2023-01-17 13:45:37 +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 Headsetcontrol tweaks 2023-01-12 15:30:40 +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-01-18 22:15:33 +01:00
flake.nix Add devshell for install purposes 2023-01-17 13:57:19 +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