Refactor bluetooth configuration
This commit is contained in:
parent
d9cd7821a1
commit
d305535b01
10 changed files with 27 additions and 27 deletions
|
@ -20,7 +20,6 @@
|
||||||
|
|
||||||
features = {
|
features = {
|
||||||
core = {
|
core = {
|
||||||
bluetooth.enable = true;
|
|
||||||
zram.enable = true;
|
zram.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -35,7 +35,6 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
core = {
|
core = {
|
||||||
bluetooth.enable = true;
|
|
||||||
openssh.enable = true;
|
openssh.enable = true;
|
||||||
pipewire.enable = true;
|
pipewire.enable = true;
|
||||||
xbanish.enable = true;
|
xbanish.enable = true;
|
||||||
|
|
|
@ -17,7 +17,6 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
features = {
|
features = {
|
||||||
core.bluetooth.enable = true;
|
|
||||||
core.zram.enable = true;
|
core.zram.enable = true;
|
||||||
desktop.dconf.enable = true;
|
desktop.dconf.enable = true;
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
{
|
|
||||||
hardware = {
|
|
||||||
bluetooth.enable = true;
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,16 +0,0 @@
|
||||||
{ config, lib, ... }:
|
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
|
||||||
cfg = config.features.core.bluetooth;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
options.features.core.bluetooth.enable = mkEnableOption "Enable bluetooth";
|
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
|
||||||
hardware.bluetooth.enable = true;
|
|
||||||
|
|
||||||
services.blueman.enable = true;
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,7 +1,6 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./avahi.nix
|
./avahi.nix
|
||||||
./bluetooth.nix
|
|
||||||
./dconf.nix
|
./dconf.nix
|
||||||
./docker.nix
|
./docker.nix
|
||||||
./dwm
|
./dwm
|
||||||
|
|
7
modules2/bluetooth.nix
Normal file
7
modules2/bluetooth.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
flake.modules.nixos.pc = {
|
||||||
|
hardware.bluetooth.enable = true;
|
||||||
|
|
||||||
|
services.blueman.enable = true;
|
||||||
|
};
|
||||||
|
}
|
7
modules2/flake-parts.nix
Normal file
7
modules2/flake-parts.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{ inputs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
inputs.flake-parts.flakeModules.modules
|
||||||
|
];
|
||||||
|
}
|
7
modules2/hosts/t480/imports.nix
Normal file
7
modules2/hosts/t480/imports.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{ config, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
flake.modules.nixos."hosts/t480".imports = with config.flake.modules.nixos; [
|
||||||
|
pc
|
||||||
|
];
|
||||||
|
}
|
|
@ -1,4 +1,4 @@
|
||||||
{ inputs, self, ... }:
|
{ config, inputs, self, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
flake =
|
flake =
|
||||||
|
@ -21,7 +21,11 @@
|
||||||
inputs.nixpkgs.lib.nixosSystem {
|
inputs.nixpkgs.lib.nixosSystem {
|
||||||
inherit system;
|
inherit system;
|
||||||
|
|
||||||
modules = [ "${self}/hosts/${hostname}/configuration.nix" ];
|
modules = [
|
||||||
|
"${self}/hosts/${hostname}/configuration.nix"
|
||||||
|
|
||||||
|
config.flake.modules.nixos."hosts/${hostname}"
|
||||||
|
];
|
||||||
|
|
||||||
specialArgs = specialArgs // {
|
specialArgs = specialArgs // {
|
||||||
inherit hostname stateVersion system;
|
inherit hostname stateVersion system;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue