!XrtRvzcHOrHtSKARne:nixos.org

NixOS Audio

114 Members
25 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
29 Apr 2023
@Minijackson:matrix.orgMinijackson is /etc/systemd/user/pipewire-pulse.socket correct now? 16:30:05
@industrial:matrix.orgIndustrial

hmm, it contains

[Unit]
Description=PipeWire PulseAudio
ConditionUser=!root
Conflicts=pulseaudio.socket

[Socket]
Priority=6
ListenStream=%t/pulse/native

[Install]
WantedBy=sockets.target

That's the same as in the built result

16:34:31
@Minijackson:matrix.orgMinijacksonI think that was the issue then16:35:01
@industrial:matrix.orgIndustrialI restarted the socket and it works now. But what was the issue?16:35:20
@Minijackson:matrix.orgMinijackson your nixos-rebuild was building from your configuration.nix instead of your flake.nix 16:35:55
@Minijackson:matrix.orgMinijackson I think that your configuration.nix doesn't have pipewire.pulse.enable = true; 16:36:12
@industrial:matrix.orgIndustrial

I have a bin/update script in my flake repo that has this:

#!/usr/bin/env bash
set -e

echo "> sudo nix-channel --update"
sudo nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
sudo nix-channel --update

echo "> nix-env -u --always"
nix-env -u --always

echo "> nix flake update"
nix --extra-experimental-features nix-command --extra-experimental-features flakes flake update

echo "> sudo nixos-rebuild build --flake '.#drakkar' --show-trace"
sudo nixos-rebuild build --flake '.#drakkar' --show-trace
echo "> sudo ./result/activate"
sudo ./result/activate
echo "> rm -f ./result"
rm -f ./result

echo "> home-manager switch --flake '.' --show-trace"
home-manager switch --flake '.' --show-trace

echo "> nixos-generate-config --show-hardware-config > hosts/drakkar/hardware-configuration.nix"
nixos-generate-config --show-hardware-config > hosts/drakkar/hardware-configuration.nix

I run that whenever I make changes to the config and also to update packages. It should build the flake file and not the /etc/nixos/configuration.nix right?

16:37:00
@Minijackson:matrix.orgMinijackson note: I wouldn't recommend doing nixos-rebuild then manually activating, because nixos-rebuild switch does some other useful things 16:38:03
@Minijackson:matrix.orgMinijacksonlike upgrading your bootloader16:38:08
@Minijackson:matrix.orgMinijacksonbut yeah, it should take from your flake16:39:09
@industrial:matrix.orgIndustrialok16:39:51
@industrial:matrix.orgIndustrialWell, it works. Now I can enjoy my new speaker setup ;) thanks!~16:40:35
@Minijackson:matrix.orgMinijacksonsure!16:40:44

Show newer messages


Back to Room ListRoom Version: 9