profiles: add devices
This commit is contained in:
parent
a5d63dcf65
commit
851da6b72f
2 changed files with 18 additions and 0 deletions
|
|
@ -3,6 +3,7 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./bluetooth.nix
|
./bluetooth.nix
|
||||||
|
./devices.nix
|
||||||
./gtk.nix
|
./gtk.nix
|
||||||
./laptop.nix
|
./laptop.nix
|
||||||
./wm.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…
Add table
Add a link
Reference in a new issue