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; enable = true;
windowManager.i3.enable = true; windowManager.i3.enable = true;
}; };
programs.dconf.enable=true; programs.dconf.enable = true;
home-manager.users.${config.host.details.user} = {config, ...}: { home-manager.users.${config.host.details.user} = {config, ...}: {
gtk={ gtk = {
enable=true; enable = true;
colorScheme="dark"; colorScheme = "dark";
}; };
qt={ qt = {
enable=true; enable = true;
style.name="adwaita-dark"; style.name = "adwaita-dark";
}; };
home.packages = with pkgs; [ home.packages = with pkgs; [
maim maim

View file

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

View file

@ -1,6 +1,7 @@
{ {
config, config,
pkgs, pkgs,
lib,
... ...
}: { }: {
# Enable sound with pipewire. # Enable sound with pipewire.
@ -13,10 +14,22 @@
pulse.enable = true; pulse.enable = true;
}; };
home-manager.users.${config.host.details.user} = {config, ...}: { home-manager.users.${config.host.details.user} = {
home.packages = with pkgs; [ config,
pwvucontrol osConfig,
helvum 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 { default = pkgs.mkShell {
packages = with pkgs; [ packages = with pkgs; [
just just
nixos-rebuild
deploy-rs.packages.${system}.deploy-rs deploy-rs.packages.${system}.deploy-rs
]; ];
}; };

View file

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

View file

@ -1,6 +1,5 @@
{ {
imports = [ imports = [
./git.nix ./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
'';
};
}