profiles: add devices

This commit is contained in:
Bruno BELANYI 2021-06-03 18:10:54 +02:00
parent a5d63dcf65
commit 851da6b72f
2 changed files with 18 additions and 0 deletions

View File

@ -3,6 +3,7 @@
{
imports = [
./bluetooth.nix
./devices.nix
./gtk.nix
./laptop.nix
./wm.nix

17
profiles/devices.nix Normal file
View File

@ -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;
};
};
}