No description
Find a file
Erwin Boskma fdc17826ed
Update flake.lock
• Updated input 'disko':
    'github:nix-community/disko/cf705ee16161b29b0e18983ecd8df3cb50f66142' (2023-03-06)
  → 'github:nix-community/disko/9a8d4a049dbc25b5f55a243a564cb402d2a21518' (2023-03-10)
• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/e1d5f416f3cc75f623d7809dc88de0ef09dc96cc' (2023-03-09)
  → 'github:nix-community/emacs-overlay/8be50d27360b033539b45cd3606a4278a55f69ec' (2023-03-11)
• Updated input 'ha-now-playing':
    'git+https://git.datarift.nl/erwin/ha-now-playing.git?ref=main&rev=b9b074836408e4c8ce15e157630d8e8098fc05cc' (2022-11-28)
  → 'git+https://git.datarift.nl/erwin/ha-now-playing.git?ref=main&rev=c45180c2b2204db535d51a04a8084167804eb029' (2023-03-10)
• Updated input 'home-manager':
    'github:nix-community/home-manager/36999b8d19eb6eebb41983ef017d7e0095316af2' (2023-03-08)
  → 'github:nix-community/home-manager/7224d7c54c5fc74cdf60b208af6148ed3295aa32' (2023-03-10)
• Updated input 'hyprland':
    'github:Hyprwm/Hyprland/92d2331170ce738056ad6bc63fa346174b954f66' (2023-03-08)
  → 'github:Hyprwm/Hyprland/253286669a115c4e63c3924eeec8391af2504c57' (2023-03-10)
• Updated input 'nil':
    'github:oxalica/nil/d1017418841c612552f73d1f670d87f57dc5e090' (2023-03-08)
  → 'github:oxalica/nil/457f6020be85b2af9f4fc9ede5ec7fa53aed588f' (2023-03-11)
• Updated input 'nixos-hardware':
    'github:NixOS/nixos-hardware/f6610997b0fc5ea5f9e142c348fca27497efe1c7' (2023-03-06)
  → 'github:NixOS/nixos-hardware/556101ff85bd6e20900ec73ee525b935154bc8ea' (2023-03-09)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/c90c4025bb6e0c4eaf438128a3b2640314b1c58d' (2023-03-08)
  → 'github:nixos/nixpkgs/0c4800d579af4ed98ecc47d464a5e7b0870c4b1f' (2023-03-10)
• Updated input 'pre-commit-hooks':
    'github:cachix/pre-commit-hooks.nix/382bee738397ca005206eefa36922cc10df8a21c' (2023-03-03)
  → 'github:cachix/pre-commit-hooks.nix/1a20b9708962096ec2481eeb2ddca29ed747770a' (2023-03-09)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/cb22476a4d0e0b8b21900d220c2b1cf830821f9d' (2023-03-09)
  → 'github:oxalica/rust-overlay/1c8200cdc4c830d937fbf8b19e1f3e83daf3370a' (2023-03-11)
• Updated input 'sops':
    'github:Mic92/sops-nix/00e9e9cd46600d68dd98a392025d4894c3711b58' (2023-03-08)
  → 'github:Mic92/sops-nix/1568702de0d2488c1e77011a9044de7fadec80c4' (2023-03-10)
2023-03-11 16:11:27 +01:00
home-manager/modules Use ControlMaster for repohost 2023-03-10 12:56:51 +01:00
machines Update to linux 6.2 2023-03-10 12:57:16 +01:00
modules Enable BuildKit by default in docker 2023-03-10 12:57:46 +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 Enable cargo module in work profile 2023-03-10 12:57:30 +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-03-11 16:11:27 +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