nixos-configuration/hosts/tablet.nix

59 lines
1.3 KiB
Nix
Raw Normal View History

2024-10-02 18:31:47 +02:00
{
self,
...
}:
2024-05-27 01:32:41 +02:00
{
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
2024-07-28 23:22:53 +02:00
../nix-os/gnupg.nix
2024-09-19 10:53:25 +02:00
../nix-os/polkit/network.nix
2024-05-27 01:32:41 +02:00
2024-10-02 18:31:47 +02:00
../nix-os/desktopManagers/cosmic.nix
../nix-os/displayManagers/cosmic-greeter.nix
2024-05-27 01:56:50 +02:00
../nix-os/udev.nix
2024-05-27 01:32:41 +02:00
];
config = {
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "wroclaw-hp";
networking.networkmanager.enable = true;
networking.firewall.enable = true;
hardware.sensor.iio.enable = true;
2024-10-02 18:31:47 +02:00
nixpkgs.overlays = [
self.overlays.cosmicPackages
];
2024-05-27 01:32:41 +02:00
networking.firewall.allowedTCPPortRanges = [
# KDE Connect
rec { from = 1714; to = from + 50; }
];
networking.firewall.allowedUDPPortRanges = [
# KDE Connect
rec { from = 1714; to = from + 50; }
];
services.logind.extraConfig = ''
HandlePowerKey=suspend
HandlePowerKeyLongPress=poweroff
HandleSuspendKey=suspend-then-hibernate
HandleSuspendKeyLongPress=hibernate
HandleLidSwitch=lock
HandleLidSwitchDocked=ignore
HandleLidSwitchExternalPower=lock
'';
2024-05-27 01:32:41 +02:00
system.stateVersion = "23.11";
};
}