mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +00:00
19 lines
430 B
Nix
19 lines
430 B
Nix
{ config, pkgs, lib, ... }:
|
|
with lib;
|
|
let
|
|
cfg = config.aviallon.laptop;
|
|
in {
|
|
options.aviallon.laptop = {
|
|
enable = mkOption {
|
|
default = false;
|
|
example = true;
|
|
type = types.bool;
|
|
description = "Enable aviallon's laptop configuration";
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
networking.networkmanager.wifi.powersave = true;
|
|
aviallon.general.unsafeOptimizations = mkOverride 50 true;
|
|
};
|
|
}
|