No description
Find a file
Erwin Boskma 40f93b4d6f
flake.lock: Update
Flake lock file updates:

• Updated input 'disko':
    'github:nix-community/disko/be98cffef02e5ebf438ea80b34b86e669c48eff1' (2023-09-12)
  → 'github:nix-community/disko/9f29cedac79d0acf07b6341f9112f46dec3abb8f' (2023-09-18)
• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/844afe34cbe49d83e7ae016564db4f72237a0bfa' (2023-09-13)
  → 'github:nix-community/emacs-overlay/c724333b2d3235b01101d62908ed1d43d18ac515' (2023-09-18)
• Updated input 'emacs-overlay/nixpkgs-stable':
    'github:NixOS/nixpkgs/9a74ffb2ca1fc91c6ccc48bd3f8cbc1501bf7b8a' (2023-09-11)
  → 'github:NixOS/nixpkgs/5d017a8822e0907fb96f7700a319f9fe2434de02' (2023-09-17)
• Updated input 'home-manager':
    'github:nix-community/home-manager/a0ddf43b6268f1717afcda54133dea30435eb178' (2023-09-13)
  → 'github:nix-community/home-manager/e63a6b34792884bfe4056d1ef561b5611589b8ad' (2023-09-18)
• Updated input 'nixos-hardware':
    'github:NixOS/nixos-hardware/ca41b8a227dd235b1b308217f116c7e6e84ad779' (2023-09-11)
  → 'github:NixOS/nixos-hardware/161b027169b19d3a0ad6bd0a8948edf0c0fb0f64' (2023-09-18)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/3a2786eea085f040a66ecde1bc3ddc7099f6dbeb' (2023-09-11)
  → 'github:nixos/nixpkgs/ace5093e36ab1e95cb9463863491bee90d5a4183' (2023-09-15)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/0282ed291f0e25f30770df5d3f1ca33908ce44a4' (2023-09-13)
  → 'github:oxalica/rust-overlay/b87a14abea512d956f0b89d0d8a1e9b41f3e20ff' (2023-09-18)
• Updated input 'sops':
    'github:Mic92/sops-nix/ea208e55f8742fdcc0986b256bdfa8986f5e4415' (2023-09-12)
  → 'github:Mic92/sops-nix/4d284ca58ce5f48df79d99ab75b1ae3c3032b9ad' (2023-09-18)
2023-09-18 19:47:29 +02:00
home-manager/modules Initial transfer to sway on work PC 2023-09-15 15:51:41 +02:00
machines Initial transfer to sway on work PC 2023-09-15 15:51:41 +02:00
modules Initial transfer to sway on work PC 2023-09-15 15:51:41 +02:00
overlays Remove commitgpt 2023-05-22 10:27:21 +02:00
pkgs Initial transfer to sway on work PC 2023-09-15 15:51:41 +02:00
users home: Set sway wallpaper 2023-09-18 13:25:01 +02:00
.envrc Load .env file 2023-04-24 08:25:18 +02:00
.gitignore Add emacs desktop file to .gitignore 2023-09-11 20:19:13 +02:00
.projectile Update flake.lock, update kernel version 2022-03-23 15:42:32 +01:00
.sops.yaml Use caddy as proxy in place of nginx-proxy-manager 2023-08-10 16:43:46 +02:00
flake.lock flake.lock: Update 2023-09-18 19:47:29 +02:00
flake.nix Initial transfer to sway on work PC 2023-09-15 15:51:41 +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 Replace exa with eza, because the former is unmaintained 2023-09-11 20:11:08 +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 eza 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