init
This commit is contained in:
commit
2278bffff9
77 changed files with 1174 additions and 0 deletions
20
Modules/Hardware/Bluetooth/bluetooth.nix
Normal file
20
Modules/Hardware/Bluetooth/bluetooth.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.nyx-module.system.bluetooth;
|
||||
in
|
||||
{
|
||||
options.nyx-module.system.bluetooth = {
|
||||
enable = lib.mkEnableOption "Enable bluetooth (system) module";
|
||||
|
||||
package = lib.mkOption {
|
||||
type = lib.types.package;
|
||||
default = pkgs.bluetooth;
|
||||
description = "Package to install for bluetooth.";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
environment.systemPackages = [ cfg.package ];
|
||||
};
|
||||
}
|
||||
7
Modules/Hardware/Bluetooth/default.nix
Normal file
7
Modules/Hardware/Bluetooth/default.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./bluetooth.nix
|
||||
];
|
||||
}
|
||||
20
Modules/Hardware/Surface/Custom-Kernel.nix
Normal file
20
Modules/Hardware/Surface/Custom-Kernel.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.nyx-module.system.Custom-Kernel;
|
||||
in
|
||||
{
|
||||
options.nyx-module.system.Custom-Kernel = {
|
||||
enable = lib.mkEnableOption "Enable Custom-Kernel (system) module";
|
||||
|
||||
package = lib.mkOption {
|
||||
type = lib.types.package;
|
||||
default = pkgs.Custom-Kernel;
|
||||
description = "Package to install for Custom-Kernel.";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
environment.systemPackages = [ cfg.package ];
|
||||
};
|
||||
}
|
||||
7
Modules/Hardware/Surface/default.nix
Normal file
7
Modules/Hardware/Surface/default.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./Custom-Kernel.nix
|
||||
];
|
||||
}
|
||||
0
Modules/Hardware/Surface/thermal-conf.xml
Normal file
0
Modules/Hardware/Surface/thermal-conf.xml
Normal file
8
Modules/Hardware/default.nix
Normal file
8
Modules/Hardware/default.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./Bluetooth
|
||||
./Surface
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue