From cd967ccf99f2f93d2a71ce33cdaffe95c215a15b Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sun, 9 May 2021 12:04:04 +0200 Subject: [PATCH] profiles: add laptop --- profiles/default.nix | 1 + profiles/laptop.nix | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 profiles/laptop.nix diff --git a/profiles/default.nix b/profiles/default.nix index eea1a11..30ec900 100644 --- a/profiles/default.nix +++ b/profiles/default.nix @@ -4,6 +4,7 @@ imports = [ ./bluetooth.nix ./gtk.nix + ./laptop.nix ./wm.nix ./x.nix ]; diff --git a/profiles/laptop.nix b/profiles/laptop.nix new file mode 100644 index 0000000..188619c --- /dev/null +++ b/profiles/laptop.nix @@ -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; + }; +}