Refactor bluetooth configuration

This commit is contained in:
Oliver Davies 2025-07-23 19:26:21 +01:00
parent d9cd7821a1
commit d305535b01
10 changed files with 27 additions and 27 deletions

7
modules2/bluetooth.nix Normal file
View file

@ -0,0 +1,7 @@
{
flake.modules.nixos.pc = {
hardware.bluetooth.enable = true;
services.blueman.enable = true;
};
}

7
modules2/flake-parts.nix Normal file
View file

@ -0,0 +1,7 @@
{ inputs, ... }:
{
imports = [
inputs.flake-parts.flakeModules.modules
];
}

View file

@ -0,0 +1,7 @@
{ config, ... }:
{
flake.modules.nixos."hosts/t480".imports = with config.flake.modules.nixos; [
pc
];
}

View file

@ -1,4 +1,4 @@
{ inputs, self, ... }:
{ config, inputs, self, ... }:
{
flake =
@ -21,7 +21,11 @@
inputs.nixpkgs.lib.nixosSystem {
inherit system;
modules = [ "${self}/hosts/${hostname}/configuration.nix" ];
modules = [
"${self}/hosts/${hostname}/configuration.nix"
config.flake.modules.nixos."hosts/${hostname}"
];
specialArgs = specialArgs // {
inherit hostname stateVersion system;