NiksOS/hosts/laptop/default.nix
Jurn Wubben 2bb3e9d699 Reorganised nix code
Added firefox extension

Ports now not opened by default on portable devices.
2025-05-08 08:48:37 +02:00

47 lines
1.2 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
pkgs,
lib,
inputs,
...
}: let
uwsm = lib.getExe pkgs.uwsm;
foot = lib.getExe pkgs.foot;
in {
imports = [
./hardware-configuration.nix
./virt.nix
];
niksos = {
bluetooth = true;
fingerprint = true;
games = true;
desktop = true;
portable = true;
neovim = true;
};
home-manager.users.jsw.wayland.windowManager.hyprland.settings.monitor = ["eDP-1,2880x1920@120,0x0,1.5,vrr,1"];
services = {
usbmuxd.enable = true;
joycond.enable = true;
udev.extraRules = ''
# Ethernet expansion card support
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="0bda", ATTR{idProduct}=="8156", ATTR{power/autosuspend}="20"
'';
logind.extraConfig = ''
# dont shutdown when power button is short-pressed
HandlePowerKey=ignore
'';
};
hardware.sensor.iio.enable = true; # brightness sensor
boot.kernelParams = [
# There seems to be an issue with panel self-refresh (PSR) that
# causes hangs for users.
#
# https://community.frame.work/t/fedora-kde-becomes-suddenly-slow/58459
# https://gitlab.freedesktop.org/drm/amd/-/issues/3647
"amdgpu.dcdebugmask=0x10"
];
}