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

• Updated input 'disko':
    'github:nix-community/disko/f43f106e91fe4f6591cf80cc5c8179e841c6e922' (2023-09-20)
  → 'github:nix-community/disko/98a6ab9b52f8b06db9c3116b1761bbeaf9484408' (2023-09-22)
• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/27ee1c63e562bfe1655432ce4dd0124fc9e8b7d7' (2023-09-21)
  → 'github:nix-community/emacs-overlay/5a8b611e684b5299b6c782b5d022d86610accd7d' (2023-09-24)
• Updated input 'emacs-overlay/nixpkgs-stable':
    'github:NixOS/nixpkgs/5d017a8822e0907fb96f7700a319f9fe2434de02' (2023-09-17)
  → 'github:NixOS/nixpkgs/e9b4b56e5a20ac322c0c01ccab7ec697ab076ea0' (2023-09-22)
• Updated input 'home-manager':
    'github:nix-community/home-manager/408ba13188ff9ce309fa2bdd2f81287d79773b00' (2023-09-20)
  → 'github:nix-community/home-manager/a88df2fb101778bfd98a17556b3a2618c6c66091' (2023-09-24)
• Updated input 'microvm':
    'github:astro/microvm.nix/2fd97e40021284ad6b2446f797229dac2698acd1' (2023-09-20)
  → 'github:astro/microvm.nix/8b1fda371d21f92609e8bb0d418bd6b1da84c155' (2023-09-22)
• Updated input 'nil':
    'github:oxalica/nil/4775e34c30f6101a9bb4364a0c7e4aae4ae43f11' (2023-09-08)
  → 'github:oxalica/nil/510bc6e9b41d39c81b9c815065cb5b7e23a2428c' (2023-09-23)
• Updated input 'nixos-hardware':
    'github:NixOS/nixos-hardware/cb4dc98f776ddb6af165e6f06b2902efe31ca67a' (2023-09-19)
  → 'github:NixOS/nixos-hardware/61283b30d11f27d5b76439d43f20d0c0c8ff5296' (2023-09-24)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/5ba549eafcf3e33405e5f66decd1a72356632b96' (2023-09-19)
  → 'github:nixos/nixpkgs/e35dcc04a3853da485a396bdd332217d0ac9054f' (2023-09-22)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/23224b680af0b27b320adec2a0dae4eef29350e6' (2023-09-21)
  → 'github:oxalica/rust-overlay/164b96162f83ae3be6a9f5577053e0d53e5f4e6a' (2023-09-24)
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