Tweaks
- 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:
parent
63c3e235f6
commit
affb03c156
7 changed files with 27 additions and 7 deletions
|
@ -1,4 +0,0 @@
|
|||
# Erwin's NixOS config
|
||||
|
||||
This configures my machines.
|
||||
|
18
README.org
Normal file
18
README.org
Normal 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 |
|
|
@ -209,6 +209,8 @@
|
|||
nodePackages.yaml-language-server
|
||||
inputs.nixos-generators.packages.${system}.nixos-generators
|
||||
statix
|
||||
multimarkdown
|
||||
pngcrush
|
||||
];
|
||||
};
|
||||
|
||||
|
|
|
@ -17,6 +17,9 @@ in
|
|||
config = {
|
||||
theme = "Monokai Extended Bright";
|
||||
pager = "less -FR";
|
||||
map-syntax = [
|
||||
"*.heex:HTML (EEx)"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -7,9 +7,9 @@ with lib; let
|
|||
cfg = config.eboskma.programs.sway;
|
||||
mod = "Mod4";
|
||||
wallpapers = {
|
||||
hd = "~/.wallpapers/river-1920.png";
|
||||
qhd = "~/.wallpapers/jwst-southern-ring-nircam-miri-side-by-side-2560.png";
|
||||
uhd = "~/.wallpapers/jwst-southern-ring-nircam-miri-side-by-side-3840.png";
|
||||
hd = ./wallpapers/river-1920.png;
|
||||
qhd = ./wallpapers/river-2560.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";
|
||||
rofiPower = pkgs.writeShellScriptBin "rofi-power" (builtins.readFile ./powermenu.sh);
|
||||
|
|
BIN
home-manager/modules/sway/wallpapers/river-3840.png
Normal file
BIN
home-manager/modules/sway/wallpapers/river-3840.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.9 MiB |
|
@ -70,6 +70,7 @@ in
|
|||
hexyl
|
||||
jq
|
||||
lm_sensors
|
||||
moreutils
|
||||
nix-template
|
||||
nvd
|
||||
usbutils
|
||||
|
|
Loading…
Reference in a new issue