Massive refactoring in configurable modules

This commit is contained in:
Antoine Viallon 2022-01-21 20:04:40 +01:00
commit 4319f5a3cc
Signed by: aviallon
GPG key ID: 186FC35EDEB25716
14 changed files with 603 additions and 0 deletions

19
laptop.nix Normal file
View file

@ -0,0 +1,19 @@
{ 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;
};
}