mirror of
https://github.com/kp2pml30/dotfiles.git
synced 2026-02-17 07:44:41 +04:00
make steam&gamepad work
This commit is contained in:
parent
af637c5d96
commit
1bd790f1c8
10 changed files with 38 additions and 6174 deletions
|
|
@ -8,8 +8,13 @@
|
|||
efiGrub = lib.mkEnableOption "";
|
||||
};
|
||||
|
||||
options.kp2pml30.hardware = {
|
||||
wireless = lib.mkEnableOption "";
|
||||
};
|
||||
|
||||
imports = [
|
||||
./efiGrub.nix
|
||||
./wireless.nix
|
||||
];
|
||||
|
||||
config = {
|
||||
|
|
|
|||
|
|
@ -41,7 +41,6 @@
|
|||
};
|
||||
|
||||
networking = {
|
||||
networkmanager.enable = true;
|
||||
useDHCP = lib.mkDefault true;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
24
nix/hardware/wireless.nix
Normal file
24
nix/hardware/wireless.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue