2019-08-24 13:12:32 +02:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
2019-10-19 12:55:35 +02:00
|
|
|
imports = [
|
2020-03-13 18:45:29 +01:00
|
|
|
./hardware/base.nix
|
2022-01-27 15:03:07 +01:00
|
|
|
./hardware/gpu-amd.nix
|
2021-03-04 14:45:54 +01:00
|
|
|
./hardware/steam.nix
|
2020-03-13 18:45:29 +01:00
|
|
|
./hardware/ledger.nix
|
|
|
|
./system
|
2021-08-04 22:15:17 +02:00
|
|
|
./system/gaming.nix
|
2020-03-13 18:45:29 +01:00
|
|
|
./desktop
|
2022-02-05 01:36:56 +01:00
|
|
|
./virtualisation/libvirt.nix
|
2020-08-15 13:53:15 +02:00
|
|
|
./virtualisation/docker.nix
|
2022-05-01 16:42:56 +02:00
|
|
|
./modules/emailNotify.nix
|
|
|
|
./services/mail.nix
|
2022-02-04 23:23:34 +01:00
|
|
|
./services/samba/home-pc.nix
|
2022-02-05 01:24:41 +01:00
|
|
|
./services/syncthing/home-pc.nix
|
2022-01-27 15:01:24 +01:00
|
|
|
./services/restic/home-pc.nix
|
2020-11-07 11:58:17 +01:00
|
|
|
./services/pcscd.nix
|
2019-08-24 13:12:32 +02:00
|
|
|
];
|
|
|
|
|
2019-10-19 12:55:35 +02:00
|
|
|
nixpkgs.config.allowUnfree = true;
|
2019-08-24 13:12:32 +02:00
|
|
|
|
2021-03-04 14:56:39 +01:00
|
|
|
boot.loader.systemd-boot.memtest86.enable = true;
|
|
|
|
|
2022-02-08 23:46:28 +01:00
|
|
|
# cross-compilation support
|
|
|
|
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
|
|
|
|
2020-02-15 10:47:20 +01:00
|
|
|
hardware.enableAllFirmware = true;
|
|
|
|
hardware.cpu.amd.updateMicrocode = true;
|
2019-12-14 12:10:09 +01:00
|
|
|
services.fwupd.enable = true;
|
|
|
|
|
2020-02-15 10:47:55 +01:00
|
|
|
programs.adb.enable = true;
|
|
|
|
|
2020-03-21 16:44:35 +01:00
|
|
|
programs.zsh.enable = true;
|
|
|
|
|
2022-05-04 03:02:47 +02:00
|
|
|
services.openssh = {
|
|
|
|
enable = true;
|
|
|
|
kbdInteractiveAuthentication = false;
|
|
|
|
passwordAuthentication = false;
|
|
|
|
permitRootLogin = "no";
|
|
|
|
};
|
|
|
|
|
2020-12-25 12:04:18 +01:00
|
|
|
networking.firewall.allowedTCPPorts = [
|
2022-01-27 15:03:07 +01:00
|
|
|
58324 # transmission
|
2020-12-25 12:04:18 +01:00
|
|
|
];
|
2021-10-29 20:27:44 +02:00
|
|
|
networking.firewall.allowedUDPPorts = [
|
|
|
|
24727 # AusweisApp2
|
|
|
|
];
|
2021-06-10 11:54:16 +02:00
|
|
|
networking.hosts = {
|
|
|
|
# force IPv4, see: https://github.com/transmission/transmission/issues/407
|
|
|
|
"87.98.162.88" = [ "portcheck.transmissionbt.com" ];
|
|
|
|
};
|
2020-12-25 12:04:18 +01:00
|
|
|
|
2022-05-01 16:42:56 +02:00
|
|
|
systemd.emailNotify.enable = true;
|
|
|
|
systemd.emailNotify.mailTo = "admin@felschr.com";
|
|
|
|
systemd.emailNotify.mailFrom =
|
|
|
|
"${config.networking.hostName} <felschr@web.de>";
|
|
|
|
|
2021-06-10 12:06:19 +02:00
|
|
|
services.printing.drivers = with pkgs; [ epson-escpr ];
|
|
|
|
|
2019-10-19 12:55:35 +02:00
|
|
|
# only change this when specified in release notes
|
2021-12-01 10:47:09 +01:00
|
|
|
system.stateVersion = "21.11";
|
2019-08-24 13:12:32 +02:00
|
|
|
}
|