Misc small stuff

This commit is contained in:
Geoffrey Frogeye 2025-12-06 23:50:57 +01:00
parent ce4f3724ee
commit 1d697a0367
2 changed files with 6 additions and 9 deletions

View file

@ -58,9 +58,9 @@
wget = "wget --hsts-file ${config.xdg.cacheHome}/wget-hsts"; wget = "wget --hsts-file ${config.xdg.cacheHome}/wget-hsts";
# Imported from scripts # Imported from scripts
rms = ''${pkgs.findutils}/bin/find . -name "*.sync-conflict-*" -delete''; # Remove syncthing conflict files rms = ''find . -name "*.sync-conflict-*" -delete''; # Remove syncthing conflict files
newestFile = ''${pkgs.findutils}/bin/find -type f -printf '%T+ %p\n' | sort | tail''; newestFile = ''find -type f -printf '%T+ %p\n' | sort | tail'';
oldestFile = ''${pkgs.findutils}/bin/find -type f -printf '%T+ %p\n' | sort | head''; oldestFile = ''find -type f -printf '%T+ %p\n' | sort | head'';
}; };
tealdeer.enable = true; tealdeer.enable = true;
lsd = { lsd = {
@ -183,6 +183,7 @@
which which
file file
cached-nix-shell # For scripts cached-nix-shell # For scripts
findutils
# Pipe utils # Pipe utils
gnugrep gnugrep

View file

@ -70,12 +70,6 @@
programs = { programs = {
adb.enable = true; adb.enable = true;
# Enable compilation cache
ccache.enable = true;
# TODO Not enough, see https://nixos.wiki/wiki/CCache.
# Might want to see if it's worth using on NixOS
less.lessopen = null; # Don't use lessopen
# Let users mount disks # Let users mount disks
udevil.enable = true; udevil.enable = true;
}; };
@ -95,6 +89,8 @@
udev.extraRules = '' udev.extraRules = ''
# DYMO LabelPOINT 350 # DYMO LabelPOINT 350
ACTION=="add", SUBSYSTEMS=="usb", ATTRS{idVendor}=="0922", ATTRS{idProduct}=="0015", MODE="0666" ACTION=="add", SUBSYSTEMS=="usb", ATTRS{idVendor}=="0922", ATTRS{idProduct}=="0015", MODE="0666"
# Seiko Epson Corp. Interface Card UB-U05 for Thermal Receipt Printers [M129C/TM-T70/TM-T88IV]
ACTION=="add", SUBSYSTEMS=="usb", ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0202", MODE="0664", GROUP="dialout"
''; '';
}; };