Files
nixfiles/system/machine/X1/configuration.nix
T

34 lines
894 B
Nix
Raw Normal View History

# 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;
networking.hostName = "X1-NixOS";
2025-05-29 16:36:13 +01:00
networking.domain = "client.cbg.emmaisvery.gay";
console.font = "Lat2-Terminus16";
2025-05-29 16:36:13 +01:00
services.pipewire = {
enable = true;
pulse.enable = true;
};
# 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;
networking.firewall.allowedTCPPorts = [ 22 ];
2025-05-29 16:36:13 +01:00
# Fingerprint reader: allow swaylock to authenticate via fprintd.
2025-05-29 16:36:13 +01:00
services.fprintd.enable = true;
security.pam.services.swaylock.fprintAuth = true;
2025-05-29 16:36:13 +01:00
# See `man configuration.nix` / the stateVersion docs before changing.
system.stateVersion = "24.11";
2025-05-29 16:36:13 +01:00
}