mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
chore: adds displaylink to laptop role; adds cifs-utils to laptop role too
This commit is contained in:
parent
341a99b1fb
commit
6b0bf699b7
1 changed files with 28 additions and 13 deletions
|
|
@ -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
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue