- Convert README.md to README.org
- Change wallpaper
- Add multimarkdown and pngcrush to devshell
- Add moreutils to base packages
- Map .heex files to HTML (EEx) syntax for bat
This commit is contained in:
Erwin Boskma 2022-10-05 15:36:12 +02:00
parent 63c3e235f6
commit affb03c156
Signed by: erwin
GPG key ID: 270B20D17394F7E5
7 changed files with 27 additions and 7 deletions

View file

@ -1,4 +0,0 @@
# Erwin's NixOS config
This configures my machines.

18
README.org Normal file
View file

@ -0,0 +1,18 @@
#+TITLE: Erwin's NixOS config
This configures my machines.
* Useful oneliners
** Remove all files except the smallest
#+begin_example
$ ls -s size | head -n 1 | xargs stat -c %s | awk '{print $1 + 1}' | xargs -I '%S' fd -S +%Sb -X rm {} \;
#+end_example
| 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 |

View file

@ -209,6 +209,8 @@
nodePackages.yaml-language-server nodePackages.yaml-language-server
inputs.nixos-generators.packages.${system}.nixos-generators inputs.nixos-generators.packages.${system}.nixos-generators
statix statix
multimarkdown
pngcrush
]; ];
}; };

View file

@ -17,6 +17,9 @@ in
config = { config = {
theme = "Monokai Extended Bright"; theme = "Monokai Extended Bright";
pager = "less -FR"; pager = "less -FR";
map-syntax = [
"*.heex:HTML (EEx)"
];
}; };
}; };
}; };

View file

@ -7,9 +7,9 @@ with lib; let
cfg = config.eboskma.programs.sway; cfg = config.eboskma.programs.sway;
mod = "Mod4"; mod = "Mod4";
wallpapers = { wallpapers = {
hd = "~/.wallpapers/river-1920.png"; hd = ./wallpapers/river-1920.png;
qhd = "~/.wallpapers/jwst-southern-ring-nircam-miri-side-by-side-2560.png"; qhd = ./wallpapers/river-2560.png;
uhd = "~/.wallpapers/jwst-southern-ring-nircam-miri-side-by-side-3840.png"; uhd = ./wallpapers/river-3840.png;
}; };
swaylockcmd = "${pkgs.swaylock-effects}/bin/swaylock --ignore-empty-password --daemonize --show-failed-attempts --indicator-caps-lock --clock --image ${wallpapers.qhd} --fade-in 0.5 --scaling fill"; swaylockcmd = "${pkgs.swaylock-effects}/bin/swaylock --ignore-empty-password --daemonize --show-failed-attempts --indicator-caps-lock --clock --image ${wallpapers.qhd} --fade-in 0.5 --scaling fill";
rofiPower = pkgs.writeShellScriptBin "rofi-power" (builtins.readFile ./powermenu.sh); rofiPower = pkgs.writeShellScriptBin "rofi-power" (builtins.readFile ./powermenu.sh);

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 MiB

View file

@ -70,6 +70,7 @@ in
hexyl hexyl
jq jq
lm_sensors lm_sensors
moreutils
nix-template nix-template
nvd nvd
usbutils usbutils