chore: adds displaylink to laptop role; adds cifs-utils to laptop role too

This commit is contained in:
Ahwx 2025-09-25 20:44:23 +02:00
parent 341a99b1fb
commit 6b0bf699b7

View file

@ -1,13 +1,32 @@
{ lib, pkgs, config, username, home-manager, ... }: {
lib,
pkgs,
config,
username,
home-manager,
...
}:
with lib; with lib;
let let
cfg = config.liv.laptop; cfg = config.liv.laptop;
in { in
{
options.liv.laptop = { options.liv.laptop = {
enable = mkEnableOption "Enable laptop"; enable = mkEnableOption "Enable laptop";
}; };
# DisplayLink
services.xserver.videoDrivers = [
"displaylink"
"modesetting"
];
systemd.services.dlm.wantedBy = [ "multi-user.target" ];
config = mkIf cfg.enable { config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [
cifs-utils
powertop
];
home-manager = { home-manager = {
users.${username} = { users.${username} = {
home.packages = with pkgs; [ home.packages = with pkgs; [
@ -19,13 +38,9 @@ in {
networking.networkmanager.enable = true; networking.networkmanager.enable = true;
environment.systemPackages = with pkgs; [
# powertop
];
boot = { boot = {
kernelModules = ["acpi_call"]; kernelModules = [ "acpi_call" ];
extraModulePackages = with config.boot.kernelPackages; extraModulePackages = with config.boot.kernelPackages; [
[
acpi_call acpi_call
]; ];
}; };