profiles: add devices

This commit is contained in:
Bruno BELANYI 2021-06-03 18:10:54 +02:00
parent 1994ef2b1b
commit 7684489c9a
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;
};
};
}