profiles: add devices
This commit is contained in:
parent
a5d63dcf65
commit
851da6b72f
|
@ -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