profiles: add devices
This commit is contained in:
parent
1994ef2b1b
commit
7684489c9a
|
@ -3,6 +3,7 @@
|
|||
{
|
||||
imports = [
|
||||
./bluetooth.nix
|
||||
./devices.nix
|
||||
./gtk.nix
|
||||
./laptop.nix
|
||||
./wm.nix
|
||||
|
|
17
profiles/devices.nix
Normal file
17
profiles/devices.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue