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

• Updated input 'disko':
    'github:nix-community/disko/9f29cedac79d0acf07b6341f9112f46dec3abb8f' (2023-09-18)
  → 'github:nix-community/disko/f43f106e91fe4f6591cf80cc5c8179e841c6e922' (2023-09-20)
• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/c724333b2d3235b01101d62908ed1d43d18ac515' (2023-09-18)
  → 'github:nix-community/emacs-overlay/27ee1c63e562bfe1655432ce4dd0124fc9e8b7d7' (2023-09-21)
• Updated input 'home-manager':
    'github:nix-community/home-manager/e63a6b34792884bfe4056d1ef561b5611589b8ad' (2023-09-18)
  → 'github:nix-community/home-manager/408ba13188ff9ce309fa2bdd2f81287d79773b00' (2023-09-20)
• Updated input 'microvm':
    'github:astro/microvm.nix/03e7f11cf915a911277c2cdea5d7da9717597aa2' (2023-09-12)
  → 'github:astro/microvm.nix/2fd97e40021284ad6b2446f797229dac2698acd1' (2023-09-20)
• Updated input 'nixos-hardware':
    'github:NixOS/nixos-hardware/161b027169b19d3a0ad6bd0a8948edf0c0fb0f64' (2023-09-18)
  → 'github:NixOS/nixos-hardware/cb4dc98f776ddb6af165e6f06b2902efe31ca67a' (2023-09-19)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/ace5093e36ab1e95cb9463863491bee90d5a4183' (2023-09-15)
  → 'github:nixos/nixpkgs/5ba549eafcf3e33405e5f66decd1a72356632b96' (2023-09-19)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/b87a14abea512d956f0b89d0d8a1e9b41f3e20ff' (2023-09-18)
  → 'github:oxalica/rust-overlay/23224b680af0b27b320adec2a0dae4eef29350e6' (2023-09-21)
• Updated input 'sops':
    'github:Mic92/sops-nix/4d284ca58ce5f48df79d99ab75b1ae3c3032b9ad' (2023-09-18)
  → 'github:Mic92/sops-nix/2f375ed8702b0d8ee2430885059d5e7975e38f78' (2023-09-21)
• Updated input 'sops/nixpkgs-stable':
    'github:NixOS/nixpkgs/5601118d39ca9105f8e7b39d4c221d3388c0419d' (2023-09-02)
  → 'github:NixOS/nixpkgs/596611941a74be176b98aeba9328aa9d01b8b322' (2023-09-16)
2023-09-27 19:40:49 +02:00
home-manager/modules firefox: Set some config stuff 2023-09-21 23:26:46 +02:00
machines Initial transfer to sway on work PC 2023-09-15 15:51:41 +02:00
modules Merge branch 'feature/sway-at-work' of git.datarift.nl:erwin/nixos-config into feature/sway-at-work 2023-09-27 17:11:17 +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 gamescope: set some default options, set CAP_SYS_NICE 2023-09-21 23:27:50 +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-27 19:40:49 +02:00
flake.nix Add anyrun and replace rofi 2023-09-21 23:26:17 +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