No description
Find a file
Erwin Boskma 7da842e9a4
Update flake.lock
• Updated input 'disko':
    'github:nix-community/disko/d4ad9595432959440984b2ba33064cfe3399d0e3' (2023-01-12)
  → 'github:nix-community/disko/b1f64612554a1fd9b1892d16c7d96aeda302e957' (2023-01-16)
• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/b14ac8cc285517482b2fd8e20db355a3980f59f0' (2023-01-13)
  → 'github:nix-community/emacs-overlay/5959aa48e3406a4f74281e7dc6136460d0a55a2b' (2023-01-17)
• Updated input 'home-manager':
    'github:nix-community/home-manager/176e455371a8371586e8a3ff0d56ee9f3ca2324e' (2023-01-10)
  → 'github:nix-community/home-manager/bd3efacb82c721edad1ce9eda583df5fb62ab00a' (2023-01-17)
• Updated input 'hyprland':
    'github:Hyprwm/Hyprland/9c77415cda40eb334dd9306c504c0003dc14b53f' (2023-01-13)
  → 'github:Hyprwm/Hyprland/c31c627cf85ea4fd40c1647c84d89b5e6f186785' (2023-01-17)
• Updated input 'hyprland/wlroots':
    'gitlab:wlroots/wlroots/dc7cc98cf21a8dc19ab8895505500e3700646af0' (2022-12-16)
  → 'gitlab:wlroots/wlroots/5f264a7d6c8af27d41ff440c05262b022c055593' (2023-01-04)
• Updated input 'nixos-hardware':
    'github:NixOS/nixos-hardware/88016c96c3c338aa801695cdd9f186820bcfe4d6' (2023-01-11)
  → 'github:NixOS/nixos-hardware/7bd6b87b3712e68007823e8dd5c37ee9b114fee3' (2023-01-15)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/6c8644fc37b6e141cbfa6c7dc8d98846c4ff0c2e' (2023-01-11)
  → 'github:nixos/nixpkgs/6dccdc458512abce8d19f74195bb20fdb067df50' (2023-01-15)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/ca474ccdd5f81ed742328e15dae38bb57a1006e3' (2023-01-13)
  → 'github:oxalica/rust-overlay/4e0f9b8a5102387f8d19901bced16a256a6ccdc7' (2023-01-17)
• Updated input 'sops':
    'github:Mic92/sops-nix/32187b33ac6ec9b628dcd08dd941a715e6241dda' (2023-01-12)
  → 'github:Mic92/sops-nix/e18eefd2b133a58309475298052c341c08470717' (2023-01-15)
• Updated input 'sops/nixpkgs-stable':
    'github:NixOS/nixpkgs/9f11a2df77cb945c115ae2a65f53f38121597d73' (2023-01-07)
  → 'github:NixOS/nixpkgs/7c65528c3f8462b902e09d1ccca23bb9034665c2' (2023-01-15)
2023-01-17 23:57:23 +01:00
home-manager/modules Change emoji font for foot 2023-01-17 23:55:36 +01:00
machines Set cpu frequency governor to 'ondemand' 2023-01-17 23:55:51 +01:00
modules Initial virtualisation server setup 2023-01-17 13:45:37 +01:00
overlays Add commitgpt package 2022-12-05 11:02:12 +01:00
pkgs Update commitgpt 2022-12-07 20:26:29 +01:00
users Headsetcontrol tweaks 2023-01-12 15:30:40 +01:00
.envrc Secrets with sops 2021-11-26 22:21:16 +01: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 minio stuff 2023-01-06 00:11:11 +01:00
flake.lock Update flake.lock 2023-01-17 23:57:23 +01:00
flake.nix Add devshell for install purposes 2023-01-17 13:57:19 +01: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