2026-06-04 13:34:44 +00:00
|
|
|
# ThinkPad X1 (NixOS). Shared laptop options live in ../../modules/laptop.nix;
|
|
|
|
|
# only host-specific settings are here.
|
|
|
|
|
{ ... }:
|
2025-05-29 16:36:13 +01:00
|
|
|
|
|
|
|
|
{
|
2026-06-02 07:40:25 -07:00
|
|
|
imports = [
|
|
|
|
|
./hardware-configuration.nix
|
|
|
|
|
];
|
2025-05-29 16:36:13 +01:00
|
|
|
|
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
|
|
2026-06-04 13:34:44 +00:00
|
|
|
networking.hostName = "X1-NixOS";
|
2025-05-29 16:36:13 +01:00
|
|
|
networking.domain = "client.cbg.emmaisvery.gay";
|
|
|
|
|
|
2026-06-04 13:34:44 +00:00
|
|
|
console.font = "Lat2-Terminus16";
|
2025-05-29 16:36:13 +01:00
|
|
|
|
|
|
|
|
services.pipewire = {
|
|
|
|
|
enable = true;
|
|
|
|
|
pulse.enable = true;
|
|
|
|
|
};
|
|
|
|
|
|
2026-06-04 13:34:44 +00:00
|
|
|
# This host accepts SSH, so open 22 (the firewall itself is enabled in
|
|
|
|
|
# laptop.nix with a default-deny policy).
|
2025-05-29 16:36:13 +01:00
|
|
|
services.openssh.enable = true;
|
2026-06-04 13:34:44 +00:00
|
|
|
networking.firewall.allowedTCPPorts = [ 22 ];
|
2025-05-29 16:36:13 +01:00
|
|
|
|
2026-06-04 13:34:44 +00:00
|
|
|
# Fingerprint reader: allow swaylock to authenticate via fprintd.
|
2025-05-29 16:36:13 +01:00
|
|
|
services.fprintd.enable = true;
|
2026-06-04 13:34:44 +00:00
|
|
|
security.pam.services.swaylock.fprintAuth = true;
|
2025-05-29 16:36:13 +01:00
|
|
|
|
2026-06-04 13:34:44 +00:00
|
|
|
# See `man configuration.nix` / the stateVersion docs before changing.
|
|
|
|
|
system.stateVersion = "24.11";
|
2025-05-29 16:36:13 +01:00
|
|
|
}
|