- Add `"lp"` and `"scanner"` groups to user accounts on both desktop and laptop hosts. - Configure `services.printing` with Epson and Gutenprint drivers. - Enable `services.avahi` (mDNS/Zeroconf) with firewall rules for Wi-Fi printer discovery. - Enable `hardware.sane` with `epsonscan2` backend support. - Add `system-config-printer` and `simple-scan` to system-wide packages.
60 lines
1.9 KiB
Nix
60 lines
1.9 KiB
Nix
# 💻 Laptop Machine Configuration
|
|
# This file defines host-specific system configurations for the Laptop environment.
|
|
# Sharing 100% of base shell, neovim, apps, and terminal settings with desktop,
|
|
# but swapping the graphical compositor stack to Niri.
|
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
imports = [
|
|
./hardware-configuration.nix
|
|
../../modules/system/graphical.nix # System-wide graphical stack settings (DMS daemon + greeter)
|
|
../../modules/system/base.nix # General hardware-agnostic OS settings
|
|
];
|
|
|
|
# Enable experimental Nix features (required for Flakes and newer command line tools)
|
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|
|
|
# System-wide fonts installed for general window manager / applications
|
|
fonts.packages = with pkgs; [
|
|
inter
|
|
nerd-fonts.fira-code
|
|
nerd-fonts.jetbrains-mono
|
|
nerd-fonts.roboto-mono
|
|
];
|
|
|
|
# Configure default fonts for system-wide alias fallbacks
|
|
fonts.fontconfig = {
|
|
enable = true;
|
|
defaultFonts = {
|
|
monospace = [ "Fira Code" ];
|
|
sansSerif = [ "Inter" ];
|
|
};
|
|
};
|
|
|
|
# EFI bootloader configuration
|
|
boot.loader.systemd-boot.enable = true;
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
# Network identification
|
|
networking.hostName = "laptop";
|
|
|
|
# Define the main user profile
|
|
users.users.kiskaadee = {
|
|
isNormalUser = true;
|
|
extraGroups = [
|
|
"wheel" # Enable sudo access for administrative tasks
|
|
"docker" # Allows running docker commands without sudo
|
|
"networkmanager" # Allows modifying network configurations
|
|
"lp" # Allows managing printers and print jobs
|
|
"scanner" # Allows access to scanners
|
|
];
|
|
};
|
|
|
|
# Host-specific graphical compositor (Niri window manager for laptop)
|
|
programs.niri.enable = true;
|
|
|
|
# Rebuild/State version. Do not modify.
|
|
system.stateVersion = "26.05";
|
|
}
|