fix: move displaylink stuff to be inside cfg argument, of course that doesn't work otherwise

This commit is contained in:
Ahwx 2025-09-25 20:49:27 +02:00
parent 53c085fa03
commit efff74008b

View file

@ -15,13 +15,6 @@ in
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; [ environment.systemPackages = with pkgs; [
cifs-utils cifs-utils
@ -36,6 +29,13 @@ in
}; };
}; };
# DisplayLink
services.xserver.videoDrivers = [
"displaylink"
"modesetting"
];
systemd.services.dlm.wantedBy = [ "multi-user.target" ];
networking.networkmanager.enable = true; networking.networkmanager.enable = true;
boot = { boot = {
@ -56,6 +56,6 @@ in
criticalPowerAction = "Hibernate"; criticalPowerAction = "Hibernate";
}; };
}; };
# powerManagement.powertop.enable = true; powerManagement.powertop.enable = true;
}; };
} }