profiles: add laptop
This commit is contained in:
parent
737484dcfe
commit
d46f66842f
|
@ -4,6 +4,7 @@
|
|||
imports = [
|
||||
./bluetooth.nix
|
||||
./gtk.nix
|
||||
./laptop.nix
|
||||
./wm.nix
|
||||
./x.nix
|
||||
];
|
||||
|
|
14
profiles/laptop.nix
Normal file
14
profiles/laptop.nix
Normal file
|
@ -0,0 +1,14 @@
|
|||
{ config, lib, ... }:
|
||||
let
|
||||
cfg = config.my.profiles.laptop;
|
||||
in
|
||||
{
|
||||
options.my.profiles.laptop = with lib; {
|
||||
enable = mkEnableOption "laptop profile";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
# Enable touchpad support
|
||||
services.xserver.libinput.enable = true;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue