move sound into a common module
This commit is contained in:
parent
a7b7ad4d84
commit
7477a7bd93
4 changed files with 11 additions and 12 deletions
8
hosts/_common/components/audio.nix
Normal file
8
hosts/_common/components/audio.nix
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
# Enable sound.
|
||||||
|
sound.enable = true;
|
||||||
|
hardware.pulseaudio.enable = true;
|
||||||
|
hardware.pulseaudio.package = pkgs.pulseaudioFull;
|
||||||
|
environment.systemPackages = [ pkgs.pavucontrol ];
|
||||||
|
}
|
|
@ -13,6 +13,7 @@
|
||||||
(settings.hostsDir + "/_common/components/ssh.nix")
|
(settings.hostsDir + "/_common/components/ssh.nix")
|
||||||
(settings.hostsDir + "/_common/components/caps_to_escape_in_tty.nix")
|
(settings.hostsDir + "/_common/components/caps_to_escape_in_tty.nix")
|
||||||
(settings.hostsDir + "/_common/components/font_jetbrainsmono.nix")
|
(settings.hostsDir + "/_common/components/font_jetbrainsmono.nix")
|
||||||
|
(settings.hostsDir + "/_common/components/audio.nix")
|
||||||
(settings.hostsDir + "/_common/components/home_manager.nix")
|
(settings.hostsDir + "/_common/components/home_manager.nix")
|
||||||
(settings.hostsDir + "/_common/components/gnome_wayland.nix")
|
(settings.hostsDir + "/_common/components/gnome_wayland.nix")
|
||||||
(settings.hostsDir + "/_common/components/docker.nix")
|
(settings.hostsDir + "/_common/components/docker.nix")
|
||||||
|
@ -34,10 +35,6 @@
|
||||||
environment.shellAliases = {
|
environment.shellAliases = {
|
||||||
wifi = "nmtui";
|
wifi = "nmtui";
|
||||||
};
|
};
|
||||||
# Enable sound.
|
|
||||||
sound.enable = true;
|
|
||||||
hardware.pulseaudio.enable = true;
|
|
||||||
hardware.pulseaudio.package = pkgs.pulseaudioFull;
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
# [Laptop] Battery status
|
# [Laptop] Battery status
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
(settings.hostsDir + "/_common/components/neovim.nix")
|
(settings.hostsDir + "/_common/components/neovim.nix")
|
||||||
(settings.hostsDir + "/_common/components/ssh.nix")
|
(settings.hostsDir + "/_common/components/ssh.nix")
|
||||||
(settings.hostsDir + "/_common/components/caps_to_escape_in_tty.nix")
|
(settings.hostsDir + "/_common/components/caps_to_escape_in_tty.nix")
|
||||||
|
(settings.hostsDir + "/_common/components/audio.nix")
|
||||||
(settings.hostsDir + "/_common/components/home_manager.nix")
|
(settings.hostsDir + "/_common/components/home_manager.nix")
|
||||||
(settings.hostsDir + "/_common/components/docker.nix")
|
(settings.hostsDir + "/_common/components/docker.nix")
|
||||||
(settings.hostsDir + "/_common/components/nebula.nix")
|
(settings.hostsDir + "/_common/components/nebula.nix")
|
||||||
|
@ -35,10 +36,6 @@
|
||||||
environment.shellAliases = {
|
environment.shellAliases = {
|
||||||
wifi = "nmtui";
|
wifi = "nmtui";
|
||||||
};
|
};
|
||||||
# Enable sound.
|
|
||||||
sound.enable = true;
|
|
||||||
hardware.pulseaudio.enable = true;
|
|
||||||
hardware.pulseaudio.package = pkgs.pulseaudioFull;
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [ nvtopPackages.full ];
|
environment.systemPackages = with pkgs; [ nvtopPackages.full ];
|
||||||
|
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
(settings.hostsDir + "/_common/components/ssh.nix")
|
(settings.hostsDir + "/_common/components/ssh.nix")
|
||||||
(settings.hostsDir + "/_common/components/caps_to_escape_in_tty.nix")
|
(settings.hostsDir + "/_common/components/caps_to_escape_in_tty.nix")
|
||||||
(settings.hostsDir + "/_common/components/font_jetbrainsmono.nix")
|
(settings.hostsDir + "/_common/components/font_jetbrainsmono.nix")
|
||||||
|
(settings.hostsDir + "/_common/components/audio.nix")
|
||||||
(settings.hostsDir + "/_common/components/home_manager.nix")
|
(settings.hostsDir + "/_common/components/home_manager.nix")
|
||||||
(settings.hostsDir + "/_common/components/gnome_xorg.nix")
|
(settings.hostsDir + "/_common/components/gnome_xorg.nix")
|
||||||
(settings.hostsDir + "/_common/components/docker.nix")
|
(settings.hostsDir + "/_common/components/docker.nix")
|
||||||
|
@ -31,10 +32,6 @@
|
||||||
environment.shellAliases = {
|
environment.shellAliases = {
|
||||||
wifi = "nmtui";
|
wifi = "nmtui";
|
||||||
};
|
};
|
||||||
# Enable sound.
|
|
||||||
sound.enable = true;
|
|
||||||
hardware.pulseaudio.enable = true;
|
|
||||||
hardware.pulseaudio.package = pkgs.pulseaudioFull;
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [ nvtopPackages.full ];
|
environment.systemPackages = with pkgs; [ nvtopPackages.full ];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue