Compare commits

...

3 commits

View file

@ -9,6 +9,8 @@
[ [
# Include the results of the hardware scan. # Include the results of the hardware scan.
./hardware-configuration.nix ./hardware-configuration.nix
# Support Brother scanner
<nixpkgs/nixos/modules/services/hardware/sane_extra_backends/brscan4.nix>
# Include Framework-specific tweaks supported by the NixOS community # Include Framework-specific tweaks supported by the NixOS community
<nixos-hardware/framework/16-inch/common> <nixos-hardware/framework/16-inch/common>
# This amazing script seems to cause the computer to not have a properly functioning screen # This amazing script seems to cause the computer to not have a properly functioning screen
@ -34,6 +36,7 @@
calibre calibre
contrast contrast
# cruft # cruft
cups-brother-hll2375dw
curl curl
ddev ddev
diffr diffr
@ -54,14 +57,17 @@
# gimp-with-plugins # Currently breaks build, but works if in nix shell solo # gimp-with-plugins # Currently breaks build, but works if in nix shell solo
git git
git-open git-open
gtk3 # for Pomodoro Prompt
gnucash gnucash
gnumake gnumake
gobject-introspection # for Pomodoro Prompt
# handbrake # converting video, https://handbrake.fr/ # handbrake # converting video, https://handbrake.fr/
htop htop
hunspell hunspell
hunspellDicts.en_US-large hunspellDicts.en_US-large
hunspellDicts.es_MX hunspellDicts.es_MX
# jitsi - this is unusuable with a regular Jitsi Meet server like May First? inetutils # telnet among other things
# jitsi # - this is unusuable with a regular Jitsi Meet server like May First?
# jitsi-meet-electron # currently breaks build # jitsi-meet-electron # currently breaks build
jq jq
just just
@ -82,6 +88,8 @@
kdePackages.kweather kdePackages.kweather
# kdePackages.neochat # For matrix but relying on insecure olm-3.2.16 # kdePackages.neochat # For matrix but relying on insecure olm-3.2.16
kdePackages.partitionmanager kdePackages.partitionmanager
kdePackages.print-manager
kdePackages.xdg-desktop-portal-kde
keepassxc keepassxc
kirc kirc
# kiwix # kiwix
@ -112,7 +120,17 @@
php # does PHP 8.2 currently and there's php81, php83, and php84 alternatives php # does PHP 8.2 currently and there's php81, php83, and php84 alternatives
php82Packages.composer php82Packages.composer
# php84Packages.composer ansible_2_16 # php84Packages.composer ansible_2_16
(python3.withPackages(ps: with ps; [ numpy pandas python-dotenv ])) # https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks/python.section.md#environment-defined-in-etcnixosconfigurationnix-environment-defined-in-etcnixosconfigurationnix (note this is literally the last thing they wanted me to do, would rather it not be global) pinta # simple image editing
(python3.withPackages(ps: with ps; [
numpy
pandas
playsound
pycairo
pygobject3
python-dotenv
pytz
tzlocal
])) # https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks/python.section.md#environment-defined-in-etcnixosconfigurationnix-environment-defined-in-etcnixosconfigurationnix (note this is literally the last thing they wanted me to do, would rather it not be global) but i want Pomodoro Prompt and Parse Timelogs to be able to run directly.
poppins poppins
postgresql postgresql
qrscan qrscan
@ -131,8 +149,10 @@
sioyek # Science-document-focused PDF viewer sioyek # Science-document-focused PDF viewer
slack slack
sly # simple image editing sly # simple image editing
spideroak # backups
starship # fancy command line prompt starship # fancy command line prompt
strawberry-qt6 strawberry-qt6
system-config-printer
tdf # Terminal PDF viewer tdf # Terminal PDF viewer
textpieces textpieces
tldr tldr
@ -152,13 +172,14 @@
vscodium vscodium
# wcalc - command-line calculator but rink does that plus unit conversion! # wcalc - command-line calculator but rink does that plus unit conversion!
wl-clipboard-rs wl-clipboard-rs
wrapGAppsHook # for Pomodoro Prompt
xorg.xkill xorg.xkill
# xpdf # Simple PDF viewer - currently marked insecure # xpdf # Simple PDF viewer - currently marked insecure
yt-dlp yt-dlp
zed-editor zed-editor
zoxide zoxide
zulip zulip
zulip-term # zulip-term
]; ];
environment.pathsToLink = [ "/share/fish" ]; environment.pathsToLink = [ "/share/fish" ];
@ -190,6 +211,20 @@
options = "--delete-older-than 60d"; options = "--delete-older-than 60d";
}; };
# Hardware
# hardware.sane.enable = true; # enables support for SANE scanners per https://wiki.nixos.org/wiki/Scanners
hardware = {
sane = {
enable = true;
brscan4 = {
enable = true;
netDevices = {
home = { model = "HL-L2380DW"; ip = "192.168.178.23"; };
};
};
};
};
networking.hostName = "nixos"; # Define your hostname. networking.hostName = "nixos"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
@ -246,7 +281,14 @@
console.keyMap = "dvorak"; console.keyMap = "dvorak";
# Enable CUPS to print documents. # Enable CUPS to print documents.
# services.printing.enable = true; services.printing.enable = true;
# Add Brother printer drivers, per https://nixos.wiki/wiki/Hardware/Brother
services.printing.drivers = [
pkgs.brlaser
pkgs.brgenml1lpr
pkgs.brgenml1cupswrapper
];
# Enable sound with pipewire. # Enable sound with pipewire.
services.pulseaudio.enable = false; services.pulseaudio.enable = false;
@ -282,7 +324,7 @@
users.users.mlncn = { users.users.mlncn = {
isNormalUser = true; isNormalUser = true;
description = "mlncn"; description = "mlncn";
extraGroups = [ "networkmanager" "wheel" "docker" ]; extraGroups = [ "networkmanager" "wheel" "docker" "scanner" "lp" ];
packages = with pkgs; [ packages = with pkgs; [
discord discord
kdePackages.kate kdePackages.kate