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