From 851da6b72f02289639a0253bcc291f253ff66dd0 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Thu, 3 Jun 2021 18:10:54 +0200 Subject: [PATCH] profiles: add devices --- profiles/default.nix | 1 + profiles/devices.nix | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 profiles/devices.nix diff --git a/profiles/default.nix b/profiles/default.nix index 30ec900..0ea4094 100644 --- a/profiles/default.nix +++ b/profiles/default.nix @@ -3,6 +3,7 @@ { imports = [ ./bluetooth.nix + ./devices.nix ./gtk.nix ./laptop.nix ./wm.nix diff --git a/profiles/devices.nix b/profiles/devices.nix new file mode 100644 index 0000000..54088b3 --- /dev/null +++ b/profiles/devices.nix @@ -0,0 +1,17 @@ +{ config, lib, ... }: +let + cfg = config.my.profiles.devices; +in +{ + options.my.profiles.devices = with lib; { + enable = mkEnableOption "devices profile"; + }; + + config = lib.mkIf cfg.enable { + my.hardware = { + ergodox.enable = true; + + mx-ergo.enable = true; + }; + }; +}