Compare commits

...

3 Commits

Author SHA1 Message Date
Eli Ribble 95a84af1f7 Add support for spotify client.
I like it way better than the browser client.
2024-07-15 10:32:00 -07:00
Eli Ribble 7ecb5a1237 Add a pre-defined printer for my Brother HL-L8250
Now I not only find the printer, but I can correctly send data to it, so
long as it's data the printer can consume like and image and not a raw
pdf. I got an error on my first attempt to print a pdf until I opened
GIMP and imported it that way.
2024-07-15 10:30:28 -07:00
Eli Ribble 580e4a2cfb Add printer support.
This is cobbled together from several different forum posts and is
likely suboptimal. The avahi support made the system auto-discover the
printer, but it wasn't able to send data to the printer successfully.
2024-07-15 10:29:16 -07:00
1 changed files with 25 additions and 2 deletions

View File

@ -2,7 +2,7 @@
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
{
imports =
@ -17,6 +17,16 @@
# Bluetooth
hardware.bluetooth.enable = true; # enables support for Bluetooth
hardware.bluetooth.powerOnBoot = true; # powers up the default Bluetooth controller on boot
hardware.printers = {
ensureDefaultPrinter = "Brother_HLL8250CDW";
ensurePrinters = [{
name = "Brother_HLL8250CDW";
deviceUri = "ipp://192.168.1.10/ipp";
model = "everywhere";
description = "Brother HL-L8250CDW";
location = "study";
}];
};
networking.hostName = "nalai"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
@ -103,16 +113,22 @@
programs.neovim.enable = true;
programs.neovim.defaultEditor = true;
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
"spotify"
];
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
chezmoi
cups-filters
dig
fish
gimp-with-plugins
git
python3
neovim
python3
spotify
thunderbird
tmux
];
@ -129,6 +145,13 @@
# Enable the OpenSSH daemon.
# services.openssh.enable = true;
services.avahi = {
enable = true;
nssmdns4 = true;
publish.enable = true;
publish.workstation = true;
publish.addresses = true;
};
services.tailscale.enable = true;
# Open ports in the firewall.