No description
Find a file
Erwin Boskma d37889cdf9
Update flake.lock, add nixinate
• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/6b44cc8a441bed3796e6ddc984745fcdeaba8aa4' (2023-01-26)
  → 'github:nix-community/emacs-overlay/1e9e9e62a5a37c262b4f31ee8cc97d40894d1874' (2023-01-27)
• Updated input 'home-manager':
    'github:nix-community/home-manager/c59f0eac51da91c6989fd13a68e156f63c0e60b6' (2023-01-24)
  → 'github:nix-community/home-manager/bb4b25b302dbf0f527f190461b080b5262871756' (2023-01-26)
• Updated input 'hyprland':
    'github:Hyprwm/Hyprland/fc89e70a1fb74429ad0f772d399325f69e65b357' (2023-01-25)
  → 'github:Hyprwm/Hyprland/af37a3895f810ebe3cc58600b0d9b2fcf449b2d1' (2023-01-27)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/1b1f50645af2a70dc93eae18bfd88d330bfbcf7f' (2023-01-23)
  → 'github:nixos/nixpkgs/9b97ad7b4330aacda9b2343396eb3df8a853b4fc' (2023-01-25)
• Updated input 'pre-commit-hooks':
    'github:cachix/pre-commit-hooks.nix/7bdf85f6bbef581eb687838d19f2b35a4c9d77f0' (2023-01-24)
  → 'github:cachix/pre-commit-hooks.nix/8539119ba0b17b15e60de60da0348d8c73bbfdf2' (2023-01-26)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/480f9cc37db841d1fd3ac0b0c059d48e5eb6946c' (2023-01-26)
  → 'github:oxalica/rust-overlay/296dd673b46aaebe1c8355f1848ceb7c905dda35' (2023-01-27)
2023-01-27 20:44:05 +01:00
home-manager/modules polybar: Enable i3, pulseaudio and mpd support 2023-01-20 09:57:49 +01:00
machines Microvm experiments 2023-01-27 15:36:05 +01:00
modules Remove dogdns due to build error 2023-01-19 11:22:06 +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 Remove onefetch due to build error 2023-01-19 11:21:35 +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, add nixinate 2023-01-27 20:44:05 +01:00
flake.nix Update flake.lock, add nixinate 2023-01-27 20:44:05 +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