profiles: add laptop
This commit is contained in:
parent
4fb46a6c58
commit
cd967ccf99
2 changed files with 15 additions and 0 deletions
|
|
@ -4,6 +4,7 @@
|
||||||
imports = [
|
imports = [
|
||||||
./bluetooth.nix
|
./bluetooth.nix
|
||||||
./gtk.nix
|
./gtk.nix
|
||||||
|
./laptop.nix
|
||||||
./wm.nix
|
./wm.nix
|
||||||
./x.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…
Add table
Add a link
Reference in a new issue