made sound usable on non-graphical systems.

This commit is contained in:
Gabe Venberg 2025-10-20 15:39:32 +02:00
parent f4e5e24e2b
commit b9fb31d1d6
7 changed files with 28 additions and 36 deletions

View file

@ -9,16 +9,15 @@
enable = true;
windowManager.i3.enable = true;
};
programs.dconf.enable=true;
programs.dconf.enable = true;
home-manager.users.${config.host.details.user} = {config, ...}: {
gtk={
enable=true;
colorScheme="dark";
gtk = {
enable = true;
colorScheme = "dark";
};
qt={
enable=true;
style.name="adwaita-dark";
qt = {
enable = true;
style.name = "adwaita-dark";
};
home.packages = with pkgs; [
maim

View file

@ -51,8 +51,7 @@
interval = 1;
}
(
lib.mkIf
(!osConfig.host.details.isVm)
lib.mkIf (!osConfig.host.details.isVm)
{
block = "backlight";
missing_format = "";

View file

@ -1,6 +1,7 @@
{
config,
pkgs,
lib,
...
}: {
# Enable sound with pipewire.
@ -13,10 +14,22 @@
pulse.enable = true;
};
home-manager.users.${config.host.details.user} = {config, ...}: {
home.packages = with pkgs; [
pwvucontrol
helvum
];
home-manager.users.${config.host.details.user} = {
config,
osConfig,
lib,
...
}: {
home.packages = with pkgs;
lib.mkMerge [
(
lib.mkIf (osConfig.host.details.gui.enable)
[
pwvucontrol
helvum
]
)
[wiremix]
];
};
}

View file

@ -82,6 +82,7 @@
default = pkgs.mkShell {
packages = with pkgs; [
just
nixos-rebuild
deploy-rs.packages.${system}.deploy-rs
];
};

View file

@ -16,6 +16,7 @@ inputs.nixpkgs.lib.nixosSystem {
../../configs/nixos/secrets.nix
../../configs/nixos/tailscale.nix
../../configs/nixos/interactive-networking.nix
../../configs/nixos/sound.nix
../../roles/nixos/embedded-dev.nix
({
config,

View file

@ -1,6 +1,5 @@
{
imports = [
./git.nix
./voice.nix
];
}

View file

@ -1,20 +0,0 @@
{
config,
pkgs,
lib,
...
}: {
options.user.enable-speech = lib.mkEnableOption "espeak";
config = lib.mkIf config.user.enable-speech {
home.shellAliases = {
say = "espeak -p 10 -s 150 -a 200";
};
home.packages = with pkgs; [
espeak
];
programs.nushell.extraConfig = ''
alias say = espeak -p 10 -s 150 -a 200
'';
};
}