mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 23:00:14 +01:00
fix: move displaylink stuff to be inside cfg argument, of course that doesn't work otherwise
This commit is contained in:
parent
53c085fa03
commit
efff74008b
1 changed files with 8 additions and 8 deletions
|
|
@ -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;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue