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

• Updated input 'disko':
    'github:nix-community/disko/b54e2dc988b34fbad1a1180fe68b573a9d080df5' (2023-09-11)
  → 'github:nix-community/disko/be98cffef02e5ebf438ea80b34b86e669c48eff1' (2023-09-12)
• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/42157ddb4e4a255d16e6a50a792893cbd1a3098c' (2023-09-11)
  → 'github:nix-community/emacs-overlay/844afe34cbe49d83e7ae016564db4f72237a0bfa' (2023-09-13)
• Updated input 'emacs-overlay/nixpkgs-stable':
    'github:NixOS/nixpkgs/4c8cf44c5b9481a4f093f1df3b8b7ba997a7c760' (2023-09-10)
  → 'github:NixOS/nixpkgs/9a74ffb2ca1fc91c6ccc48bd3f8cbc1501bf7b8a' (2023-09-11)
• Updated input 'flake-utils':
    'github:numtide/flake-utils/f9e7cf818399d17d347f847525c5a5a8032e4e44' (2023-08-23)
  → 'github:numtide/flake-utils/ff7b65b44d01cf9ba6a71320833626af21126384' (2023-09-12)
• Updated input 'home-manager':
    'github:nix-community/home-manager/f7848d3e5f15ed02e3f286029697e41ee31662d7' (2023-09-10)
  → 'github:nix-community/home-manager/a0ddf43b6268f1717afcda54133dea30435eb178' (2023-09-13)
• Updated input 'microvm':
    'github:astro/microvm.nix/c2ee8fd0fef00b3a019b08c42976ecef1e1cd103' (2023-09-10)
  → 'github:astro/microvm.nix/03e7f11cf915a911277c2cdea5d7da9717597aa2' (2023-09-12)
• Updated input 'nixos-hardware':
    'github:NixOS/nixos-hardware/793de77d9f83418b428e8ba70d1e42c6507d0d35' (2023-09-03)
  → 'github:NixOS/nixos-hardware/ca41b8a227dd235b1b308217f116c7e6e84ad779' (2023-09-11)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/db9208ab987cdeeedf78ad9b4cf3c55f5ebd269b' (2023-09-08)
  → 'github:nixos/nixpkgs/3a2786eea085f040a66ecde1bc3ddc7099f6dbeb' (2023-09-11)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/6c520f2e31f4bebeb29cc4563543de7187013575' (2023-09-11)
  → 'github:oxalica/rust-overlay/0282ed291f0e25f30770df5d3f1ca33908ce44a4' (2023-09-13)
• Updated input 'sops':
    'github:Mic92/sops-nix/faf21ac162173c2deb54e5fdeed002a9bd6e8623' (2023-09-05)
  → 'github:Mic92/sops-nix/ea208e55f8742fdcc0986b256bdfa8986f5e4415' (2023-09-12)
2023-09-13 08:47:31 +02:00
home-manager/modules Merge branch 'main' of git.datarift.nl:erwin/nixos-config 2023-09-11 20:17:53 +02:00
machines loki: Several changes: 2023-09-11 20:16:06 +02:00
modules greetd: Switch to elementary theme 2023-09-06 17:01:26 +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 Add gamescope 2023-09-11 20:16:15 +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-13 08:47:31 +02:00
flake.nix Add cryptsetup to devshell 2023-09-11 20:16:40 +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