mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +00:00
Massive refactoring in configurable modules
This commit is contained in:
commit
4319f5a3cc
14 changed files with 603 additions and 0 deletions
19
laptop.nix
Normal file
19
laptop.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue