Add laptop module and remove unused dotfiles
This commit is contained in:
@@ -14,5 +14,6 @@
|
||||
./networking.nix
|
||||
./openssh.nix
|
||||
./system.nix
|
||||
./laptop.nix
|
||||
];
|
||||
}
|
||||
|
||||
24
modules/options/laptop.nix
Normal file
24
modules/options/laptop.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{ lib
|
||||
, pkgs
|
||||
, config
|
||||
, ...
|
||||
}:
|
||||
|
||||
with lib; let
|
||||
cfg = config.simmer.gui;
|
||||
in
|
||||
{
|
||||
options.simmer.laptop = {
|
||||
backlight.enable = mkOption {
|
||||
description = "Whether to enable backlight control";
|
||||
type = types.bool;
|
||||
default = false;
|
||||
};
|
||||
|
||||
powersave.enable = mkOption {
|
||||
description = "Whether to enable powersaving programs";
|
||||
type = types.bool;
|
||||
default = false;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user