29 Apr 2023 |
Minijackson | is /etc/systemd/user/pipewire-pulse.socket correct now? | 16:30:05 |
Industrial | 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 | I think that was the issue then | 16:35:01 |
Industrial | I restarted the socket and it works now. But what was the issue? | 16:35:20 |
Minijackson | your nixos-rebuild was building from your configuration.nix instead of your flake.nix | 16:35:55 |
Minijackson | I think that your configuration.nix doesn't have pipewire.pulse.enable = true; | 16:36:12 |
Industrial | 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 | note: I wouldn't recommend doing nixos-rebuild then manually activating, because nixos-rebuild switch does some other useful things | 16:38:03 |
Minijackson | like upgrading your bootloader | 16:38:08 |
Minijackson | but yeah, it should take from your flake | 16:39:09 |
Industrial | ok | 16:39:51 |
Industrial | Well, it works. Now I can enjoy my new speaker setup ;) thanks!~ | 16:40:35 |
Minijackson | sure! | 16:40:44 |