From 384fdd9172a74700d110e1298dc105f4d472487c Mon Sep 17 00:00:00 2001 From: Wroclaw Date: Mon, 27 May 2024 01:32:41 +0200 Subject: [PATCH] hosts: add tablet --- hosts/tablet.nix | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 hosts/tablet.nix diff --git a/hosts/tablet.nix b/hosts/tablet.nix new file mode 100644 index 0000000..b369d47 --- /dev/null +++ b/hosts/tablet.nix @@ -0,0 +1,39 @@ +{ config, lib, pkgs, ... }: + +{ + imports = [ + ../nix-os/core.nix + ../nix-os/core-desktop.nix + ../nix-os/account.nix + ../nix-os/adb.nix + ../nix-os/locale.nix + ../nix-os/shell.nix + + ../nix-os/desktopManagers/gnome.nix + ../nix-os/displayManagers/gdm.nix + ]; + + config = { + boot.loader.systemd-boot.enable = true; + boot.loader.efi.canTouchEfiVariables = true; + + networking.hostName = "wroclaw-hp"; + networking.networkmanager.enable = true; + networking.firewall.enable = true; + services.xserver.displayManager.gdm.wayland = lib.mkForce true; + hardware.sensor.iio.enable = true; + + networking.firewall.allowedTCPPortRanges = [ + # KDE Connect + rec { from = 1714; to = from + 50; } + ]; + + networking.firewall.allowedUDPPortRanges = [ + # KDE Connect + rec { from = 1714; to = from + 50; } + ]; + + system.stateVersion = "23.11"; + }; +} +