From efff74008b59e7706065450fcb6c222a4799eb29 Mon Sep 17 00:00:00 2001 From: Ahwx Date: Thu, 25 Sep 2025 20:49:27 +0200 Subject: [PATCH] fix: move displaylink stuff to be inside cfg argument, of course that doesn't work otherwise --- roles/laptop.nix | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/roles/laptop.nix b/roles/laptop.nix index 5b37a81..76cb8f8 100644 --- a/roles/laptop.nix +++ b/roles/laptop.nix @@ -15,13 +15,6 @@ in enable = mkEnableOption "Enable laptop"; }; - # DisplayLink - services.xserver.videoDrivers = [ - "displaylink" - "modesetting" - ]; - systemd.services.dlm.wantedBy = [ "multi-user.target" ]; - config = mkIf cfg.enable { environment.systemPackages = with pkgs; [ cifs-utils @@ -36,6 +29,13 @@ in }; }; + # DisplayLink + services.xserver.videoDrivers = [ + "displaylink" + "modesetting" + ]; + systemd.services.dlm.wantedBy = [ "multi-user.target" ]; + networking.networkmanager.enable = true; boot = { @@ -56,6 +56,6 @@ in criticalPowerAction = "Hibernate"; }; }; - # powerManagement.powertop.enable = true; + powerManagement.powertop.enable = true; }; }