Add discord, slack, zapzap, printing module, fix dup SSH

This commit is contained in:
Scott Scoble 2026-05-17 10:02:27 -07:00
parent 257cf60914
commit ae98d6c2e5
4 changed files with 40 additions and 11 deletions

View file

@ -47,6 +47,9 @@
docker
dive
beeper
discord
slack
zapzap
nmap
tcpdump
speedtest-cli

View file

@ -137,5 +137,5 @@ windowrule = match:title ^(Authentication Required)$, float on
windowrule = match:class ^(pavucontrol)$, size 75% 75%
windowrule = match:class ^(code-oss|Code|jetbrains-.*|nvim)$, workspace 2
windowrule = match:class ^(firefox|chromium-browser|google-chrome)$, workspace 3
windowrule = match:class ^(discord|Slack|TelegramDesktop)$, workspace 4
windowrule = match:class ^(discord|Slack|TelegramDesktop|zapzap)$, workspace 4
windowrule = match:class ghostty, workspace 1

View file

@ -1,7 +1,7 @@
{ config, pkgs, ... }:
{
imports = [ ../hardware-configuration.nix ./emulation.nix ];
imports = [ ../hardware-configuration.nix ./emulation.nix ./printing.nix ];
# === System Packages ===
environment.systemPackages = with pkgs; [
@ -187,7 +187,7 @@
users.users.sscoble = {
isNormalUser = true;
description = "Scott Scoble";
extraGroups = [ "networkmanager" "wheel" "docker" ];
extraGroups = [ "networkmanager" "wheel" "docker" "lp" ];
shell = pkgs.zsh;
packages = with pkgs; [
neovim
@ -204,17 +204,10 @@
time.timeZone = "America/Los_Angeles";
i18n.defaultLocale = "en_US.UTF-8";
# === SSH Server ===
services.openssh = {
enable = true;
settings.PasswordAuthentication = false;
openFirewall = true;
};
# === Boot ===
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# === SSH Server ===
services.openssh = {
enable = true;

33
modules/printing.nix Normal file
View file

@ -0,0 +1,33 @@
{ config, pkgs, ... }:
{
# === Network Printing ===
services.printing = {
enable = true;
drivers = with pkgs; [
gutenprint # Generic printer drivers
gutenprintBin # Binary firmware for some models
hplip # HP printer drivers + utilities
splix # Samsung printer drivers
brlaser # Brother laser printer drivers
brgenml1lpr # Brother generic LPR driver
brgenml1cupswrapper # Brother CUPS wrapper
canon-cups-ufr2 # Canon UFR2 drivers
cups-bjnp # Canon BJNP network backend
];
};
# Enable network printer discovery via mDNS/Bonjour
services.avahi = {
enable = true;
nssmdns = true;
publish = {
enable = true;
addresses = true;
workstation = true;
};
};
# Allow sscoble to admin printers without root
users.users.sscoble.extraGroups = [ "lp" ];
}