diff options
| author | Nantha Sorubakanthan <nantha@mielota.com> | 2026-06-07 10:46:27 +0200 |
|---|---|---|
| committer | Nantha Sorubakanthan <nantha@mielota.com> | 2026-06-07 10:46:27 +0200 |
| commit | 2926770788970ceeb31d69a726ba971358499862 (patch) | |
| tree | c3be8d9b3380c06d992d7d377d8292843790d274 | |
| parent | c36e55e90f9bdcf2c080a874b947632fb3d56202 (diff) | |
fix sound on nixos
| -rw-r--r-- | Makefile | 10 | ||||
| -rwxr-xr-x | nixos/.unblock-pipewire.sh | 3 | ||||
| -rw-r--r-- | nixos/config/user-dirs.dirs | 8 | ||||
| -rw-r--r-- | nixos/configuration.nix | 15 | ||||
| -rw-r--r-- | nixos/home.nix | 1 |
5 files changed, 31 insertions, 6 deletions
@@ -3,12 +3,14 @@ MAKEFLAGS ?= B DIRS = ~/.config DIRS += ~/.local/share/ DIRS += ~/.local/bin -DIRS += ~/bin -DIRS += ~/code +DIRS += ~/desktop DIRS += ~/dl -DIRS += ~/media +DIRS += ~/templates +DIRS += ~/public +DIRS += ~/code DIRS += ~/music -DIRS += ~/trash +DIRS += ~/images +DIRS += ~/videos all: $(DIRS) diff --git a/nixos/.unblock-pipewire.sh b/nixos/.unblock-pipewire.sh new file mode 100755 index 0000000..c860072 --- /dev/null +++ b/nixos/.unblock-pipewire.sh @@ -0,0 +1,3 @@ +amixer -c 0 sset 'Left Headphone Mixer Left DAC' on +amixer -c 0 sset 'Right Headphone Mixer Right DAC' on +amixer -c 0 sset 'Headphone' 100% unmute diff --git a/nixos/config/user-dirs.dirs b/nixos/config/user-dirs.dirs new file mode 100644 index 0000000..54d6c75 --- /dev/null +++ b/nixos/config/user-dirs.dirs @@ -0,0 +1,8 @@ +XDG_DESKTOP_DIR="$HOME/desktop" +XDG_DOWNLOAD_DIR="$HOME/dl" +XDG_TEMPLATES_DIR="$HOME/templates" +XDG_PUBLICSHARE_DIR="$HOME/public" +XDG_DOCUMENTS_DIR="$HOME/code" +XDG_MUSIC_DIR="$HOME/music" +XDG_PICTURES_DIR="$HOME/images" +XDG_VIDEOS_DIR="$HOME/videos" diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 59891cd..24d7549 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -23,9 +23,14 @@ keyMap = "fr"; }; + security.rtkit.enable = true; services.pipewire = { enable = true; - pulse.enable = true; + alsa.enable = true; + alsa.support32Bit = true; + pulse.enable = true; + jack.enable = true; + wireplumber.enable = true; }; services.libinput.enable = true; @@ -45,9 +50,15 @@ environment.systemPackages = with pkgs; [ brightnessctl + xdg-user-dirs + alsa-utils + alsa-tools + ]; + + hardware.firmware = with pkgs; [ + linux-firmware sof-firmware alsa-firmware - linux-firmware ]; services.openssh.enable = true; diff --git a/nixos/home.nix b/nixos/home.nix index c926c92..cd31c1f 100644 --- a/nixos/home.nix +++ b/nixos/home.nix @@ -41,6 +41,7 @@ home.file.".config/waybar".source = ./config/waybar; home.file.".config/git".source = ./config/git; home.file.".config/nvim/init.lua".source = ./config/nvim/init.lua; + home.file.".config/user-dirs.dirs".source = ./config/user-dirs.dirs; home.packages = with pkgs; [ neovim |
