make steam&gamepad work

This commit is contained in:
kp2pml30 2025-02-01 00:01:52 +04:00
parent af637c5d96
commit 1bd790f1c8
10 changed files with 38 additions and 6174 deletions

View file

@ -8,8 +8,13 @@
efiGrub = lib.mkEnableOption "";
};
options.kp2pml30.hardware = {
wireless = lib.mkEnableOption "";
};
imports = [
./efiGrub.nix
./wireless.nix
];
config = {

View file

@ -41,7 +41,6 @@
};
networking = {
networkmanager.enable = true;
useDHCP = lib.mkDefault true;
};
}

24
nix/hardware/wireless.nix Normal file
View file

@ -0,0 +1,24 @@
{ pkgs
, lib
, rootPath
, config
, ...
}:
let
cfg = config.kp2pml30;
in lib.mkIf cfg.hardware.wireless {
networking = {
networkmanager.enable = false;
wireless.iwd = {
enable = true;
settings = {
Settings.AutoConnect = true;
};
};
};
hardware.bluetooth = {
enable = true;
powerOnBoot = true;
};
}