2022-10-31 11:04:38 +01:00
|
|
|
{ pkgs, lib, config, ... }:
|
2022-01-07 20:44:10 +01:00
|
|
|
|
2022-10-31 11:04:38 +01:00
|
|
|
let keys = import ../../../variables/keys.nix;
|
2022-01-07 20:44:10 +01:00
|
|
|
in {
|
|
|
|
|
|
|
|
# TASK: new device
|
|
|
|
networking.hostName = "steveej-pa600"; # Define your hostname.
|
|
|
|
|
|
|
|
networking.firewall.enable = true;
|
|
|
|
networking.firewall.allowedTCPPorts = [
|
|
|
|
# iperf3
|
|
|
|
5201
|
|
|
|
];
|
|
|
|
|
|
|
|
networking.firewall.logRefusedConnections = false;
|
|
|
|
networking.usePredictableInterfaceNames = false;
|
|
|
|
|
|
|
|
services.printing = {
|
|
|
|
enable = true;
|
2022-10-31 11:04:38 +01:00
|
|
|
drivers = with pkgs; [ hplip mfcl3770cdw.driver mfcl3770cdw.cupswrapper ];
|
2022-01-07 20:44:10 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
services.fprintd.enable = true;
|
|
|
|
security.pam.services = {
|
|
|
|
login.fprintAuth = true;
|
|
|
|
sudo.fprintAuth = true;
|
|
|
|
};
|
|
|
|
|
2022-10-31 11:04:38 +01:00
|
|
|
security.pki.certificateFiles =
|
|
|
|
[ "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt" ];
|
2022-01-07 20:44:10 +01:00
|
|
|
|
|
|
|
services.xserver.videoDrivers = [ "modesetting" ];
|
|
|
|
services.xserver.serverFlagsSection = ''
|
|
|
|
Option "BlankTime" "0"
|
|
|
|
Option "StandbyTime" "0"
|
|
|
|
Option "SuspendTime" "0"
|
|
|
|
Option "OffTime" "0"
|
|
|
|
'';
|
|
|
|
|
|
|
|
boot.kernelPackages = lib.mkForce pkgs.linuxPackages_latest;
|
|
|
|
|
|
|
|
hardware.ledger.enable = true;
|
|
|
|
}
|