profiles: add laptop

This commit is contained in:
Bruno BELANYI 2021-05-09 12:04:04 +02:00
parent 737484dcfe
commit d46f66842f
2 changed files with 15 additions and 0 deletions

View file

@ -4,6 +4,7 @@
imports = [
./bluetooth.nix
./gtk.nix
./laptop.nix
./wm.nix
./x.nix
];

14
profiles/laptop.nix Normal file
View 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;
};
}