Everything works for now except dashboard and maybe some other

This commit is contained in:
2025-04-23 08:41:19 +03:00
parent e2545d8e3d
commit 7fe99790a4
15 changed files with 187 additions and 32 deletions
+16
View File
@@ -0,0 +1,16 @@
{ lib, config, pkgs, ... }:
let
isEnabled =
config.azos.hardware-audio.enable;
in {
options.azos.hardware-audio.enable = lib.mkOption {
default = true;
example = true;
type = lib.types.bool;
};
config = lib.mkIf isEnabled {
hardware.pulseaudio.enable = true;
environment.systemPackages = with pkgs; [pavucontrol];
};
}
+16
View File
@@ -0,0 +1,16 @@
{ lib, config, pkgs, ... }:
let
isEnabled =
config.azos.bluetooth.enable;
in {
options.azos.bluetooth.enable = lib.mkOption {
default = true;
example = true;
type = lib.types.bool;
};
config = lib.mkIf isEnabled {
services.blueman.enable = true;
hardware.bluetooth.enable = true;
};
}
+2 -4
View File
@@ -1,6 +1,4 @@
# Add your reusable NixOS modules to this directory, on their own file (https://nixos.wiki/wiki/Module).
# These should be stuff you would like to share with others, not your personal configurations.
{
# List your module files here
# my-module = import ./my-module.nix;
imports = [./audio.nix ./bluetooth.nix];
}