nix/thinkpad/configuration.nix

63 lines
1.1 KiB
Nix

{ config, pkgs, ... }:
{
imports = [
../hardware-configuration.nix
../common/configuration.nix
];
hardware.bluetooth.enable = true;
boot = {
loader = {
efi.canTouchEfiVariables = true;
systemd-boot = {
enable = true;
consoleMode = "auto";
};
};
kernelParams = [
"quiet"
"splash"
"vga=current"
"mitigations=off"
"udev.log_level=3"
];
initrd.verbose = false;
};
networking = {
hostName = "sijmen-laptop";
networkmanager.enable = true;
firewall = {
allowedTCPPorts = [
22 # ssh
22000 # syncthing sync
51414 # transmission
57621 # spotify connect
];
allowedUDPPorts = [
21027 # syncthing discovery
22000 # syncthing sync
];
};
};
services = {
syncthing = {
overrideDevices = true;
devices = {
nas.id = "5XADATO-6ZKNZFK-YIX2TU3-RTUOAXR-OMWOAH6-OIUB7LE-TWM5B3C-W2I2FQU";
desktop-fedora.id = "RE3BCEP-2FVDNPA-C72KDCX-5NRTLD4-DEJZAIX-PJAMJAN-LJDFHOY-WOXNPQW";
};
};
};
system.stateVersion = "22.05";
}