Added nixos configs

This commit is contained in:
2026-02-22 19:25:39 +01:00
parent c0f19a200d
commit 8694deed28
9013 changed files with 118058 additions and 0 deletions
@@ -0,0 +1,35 @@
{ config, lib, pkgs, ... }:
let
moduleName = "nixos-printers";
in
{
# ---- Printing (CUPS) ----
services.printing = {
enable = true;
# Good general compatibility. Many modern printers work driverless (IPP Everywhere),
# but these help with older models and various formats.
drivers = with pkgs; [
cups-filters
gutenprint
];
};
# ---- Network printer discovery (mDNS / DNS-SD) ----
services.avahi = {
enable = true;
# Resolve .local names + discover services on IPv4
nssmdns4 = true;
# You're controlling firewall rules in firewall.nix
openFirewall = false;
};
# ---- Optional GUI tool to add/manage printers ----
environment.systemPackages = with pkgs; [
system-config-printer
];
# allow admin actions in printer GUI (usually already present on desktop systems)
security.polkit.enable = true;
environment.etc."nixlog/loaded.${moduleName}".text = "loaded\n";
}
@@ -0,0 +1,18 @@
# SSH client only (no server).
# - Installs OpenSSH client tools (ssh, scp, sftp, ssh-keygen, etc.)
# - Enables ssh-agent for user sessions
{ config, lib, pkgs, ... }:
{
# Install the OpenSSH client tools
environment.systemPackages = with pkgs; [
#openssh
];
# Start ssh-agent automatically for users (handy baseline)
programs.ssh.startAgent = true;
# Explicitly ensure the SSH server is NOT enabled
services.openssh.enable = false;
}