No description
Find a file
Erwin Boskma 3fa6f96290
Update flake.lock
• Updated input 'disko':
    'github:nix-community/disko/fef67a1ddc293b595d62a660f57deabbcb70ff95' (2023-06-26)
  → 'github:nix-community/disko/8002e7cb899bc2a02a2ebfb7f999fcd7c18b92a1' (2023-06-28)
• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/f42cc216ad19b81c18657671b8681f1b005804b3' (2023-06-28)
  → 'github:nix-community/emacs-overlay/f443f77e16da5b244761ae7d5c45064418c9df7b' (2023-07-03)
• Updated input 'emacs-overlay/nixpkgs-stable':
    'github:NixOS/nixpkgs/9790f3242da2152d5aa1976e3e4b8b414f4dd206' (2023-06-27)
  → 'github:NixOS/nixpkgs/0de86059128947b2438995450f2c2ca08cc783d5' (2023-07-01)
• Updated input 'flake-parts':
    'github:hercules-ci/flake-parts/37dd7bb15791c86d55c5121740a1887ab55ee836' (2023-06-26)
  → 'github:hercules-ci/flake-parts/267149c58a14d15f7f81b4d737308421de9d7152' (2023-07-01)
• Updated input 'flake-parts/nixpkgs-lib':
    'github:NixOS/nixpkgs/4f53efe34b3a8877ac923b9350c874e3dcd5dc0a?dir=lib' (2023-05-31)
  → 'github:NixOS/nixpkgs/4bc72cae107788bf3f24f30db2e2f685c9298dc9?dir=lib' (2023-06-29)
• Updated input 'home-manager':
    'github:nix-community/home-manager/47c2adc6b31e9cff335010f570814e44418e2b3e' (2023-06-28)
  → 'github:nix-community/home-manager/c85d9137db45a1c9c161f4718b13cc3bd4cbd173' (2023-07-02)
• Updated input 'microvm':
    'github:astro/microvm.nix/c14833d8506a784f0b3cf91a2b864acb05662711' (2023-06-21)
  → 'github:astro/microvm.nix/f7c9df6a19de6bb5215b32f6bbd5a8c9d6510ebf' (2023-07-02)
• Updated input 'naersk':
    'github:nix-community/naersk/df10963b956962913b693a638746a95d6c506404' (2023-06-27)
  → 'github:nix-community/naersk/714e701eb4ca2491d34d794b98be4b994a796ae7' (2023-07-01)
• Updated input 'nixinate':
    'github:MatthewCroughan/nixinate/b4d17b8e2a4abc47e93e1a1c466e0286a63640d8' (2022-12-15)
  → 'github:MatthewCroughan/nixinate/7902ae845e6cc5bd450e510cdf5e009a6e4a44d9' (2023-06-30)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/6b3d1b1cf13f407fef5e634b224d575eb7211975' (2023-06-26)
  → 'github:nixos/nixpkgs/645ff62e09d294a30de823cb568e9c6d68e92606' (2023-07-01)
• Updated input 'pre-commit-hooks':
    'github:cachix/pre-commit-hooks.nix/1fa438eee82f35bdd4bc30a9aacd7648d757b388' (2023-06-26)
  → 'github:cachix/pre-commit-hooks.nix/522fd47af79b66cdd04b92618e65c7a11504650a' (2023-06-30)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/fc57a011f1c20d2b24f75a79ab669430a221b220' (2023-06-28)
  → 'github:oxalica/rust-overlay/f9b92316727af9e6c7fee4a761242f7f46880329' (2023-07-03)
• Updated input 'sops':
    'github:Mic92/sops-nix/2ff6973350682f8d16371f8c071a304b8067f192' (2023-06-22)
  → 'github:Mic92/sops-nix/5ed3c22c1fa0515e037e36956a67fe7e32c92957' (2023-07-02)
• Updated input 'sops/nixpkgs-stable':
    'github:NixOS/nixpkgs/e2e2059d19668dab1744301b8b0e821e3aae9c99' (2023-06-17)
  → 'github:NixOS/nixpkgs/f553c016a31277246f8d3724d3b1eee5e8c0842c' (2023-07-02)
2023-07-03 09:28:03 +02:00
home-manager/modules polybar: Improve headset battery script 2023-06-23 14:14:53 +02:00
machines Disable ssh-agent in favour of gnome keyring 2023-06-23 14:15:11 +02:00
modules Correct SSH_AUTH_SOCK for gnome-keyring 2023-06-29 14:32:09 +02:00
overlays Remove commitgpt 2023-05-22 10:27:21 +02:00
pkgs Remove commitgpt 2023-05-22 10:27:21 +02:00
users Enable gnome-keyring in home-manager 2023-06-08 10:04:21 +02:00
.envrc Load .env file 2023-04-24 08:25:18 +02: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 work age key 2023-06-01 16:04:32 +02:00
flake.lock Update flake.lock 2023-07-03 09:28:03 +02:00
flake.nix Remove eww-wayland from devshell 2023-06-23 14:14:33 +02:00
Justfile Add boot recipe to Justfile 2023-07-03 09:26:40 +02: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