!XrtRvzcHOrHtSKARne:nixos.org

NixOS Audio

135 Members
35 Servers

Load older messages


SenderMessageTime
29 Apr 2023
@industrial:matrix.orgIndustrial(the problem I was having before was not about sound but stuff like yggdrasil service running but not in my config and lots of other quirks)15:43:54
@Minijackson:matrix.orgMinijackson Industrial: ok, so I built the etc directory of your configuration, and I do have ./result/etc/systemd/user/pipewire-pulse.socket -> /nix/store/cg5412y1xdp5nl2sfmh62h5g9hvkibvp-pipewire-0.3.70-pulse/lib/systemd/user/pipewire-pulse.socket 15:57:32
@Minijackson:matrix.orgMinijacksonand the correct content15:57:52
@Minijackson:matrix.orgMinijackson mind showing nix flake metadata of your flake? 15:58:04
@Minijackson:matrix.orgMinijackson(I just commented the import, and the wine package due to compilation)15:58:49
@Minijackson:matrix.orgMinijackson * (I just commented the import, and the wine packages due to compilation)15:58:59
@industrial:matrix.orgIndustrial

@Minijackson thanks for the support/effort :)

warning: Git tree '/home/tom/.dotfiles' is dirty
Resolved URL:  git+file:///home/tom/.dotfiles
Locked URL:    git+file:///home/tom/.dotfiles
Description:   System Flake
Path:          /nix/store/qsnjxr9bf9kki8pd1h8whl8z98i2h406-source
Last modified: 2023-04-23 22:06:25
Inputs:
├───home-manager: github:nix-community/home-manager/3144311f31194b537808ae6848f86f3dbf977d59
│   └───nixpkgs: github:nixos/nixpkgs/645bc49f34fa8eff95479f0345ff57e55b53437e
└───nixpkgs: github:NixOS/nixpkgs/937a9d1ee7b1351d8c55fff6611a8edf6e7c1c37
16:22:57
@Minijackson:matrix.orgMinijacksonsure!16:23:07
@Minijackson:matrix.orgMinijacksonhuh16:23:57
@Minijackson:matrix.orgMinijacksonoh nevermind16:24:25
@Minijackson:matrix.orgMinijacksonsame thing16:24:34
@industrial:matrix.orgIndustrial pipewire-pulse.socket -> /nix/store/cg5412y1xdp5nl2sfmh62h5g9hvkibvp-pipewire-0.3.70-pulse/lib/systemd/user/pipewire-pulse.socket that's in my result 16:24:38
@Minijackson:matrix.orgMinijackson does nixos-rebuild test say something in particular? 16:25:07
@industrial:matrix.orgIndustrialIt also contains a config, that socket file16:25:42
@industrial:matrix.orgIndustrial
building Nix...
building the system configuration...
mkdir /run/nixos: Permission denied at /nix/store/aljw17f9h225ygszigg82cpnxhf5cmws-nixos-system-nixos-22.11.3955.7449971a3ec/bin/switch-to-configuration line 91.
warning: error(s) occurred while switching to the new configuration
16:26:22
@industrial:matrix.orgIndustrialoh sudo16:26:39
@industrial:matrix.orgIndustrial I think that this command sets up the /etc/nixos/configuration.nix again, so it doesn't have my flake config 16:27:35
@Minijackson:matrix.orgMinijacksonoooh, that would explain the difference16:27:52
@Minijackson:matrix.orgMinijackson you can use nixos-rebuild --flake '.#drakkar' 16:28:18
@industrial:matrix.orgIndustrial
warning: Git tree '/home/tom/.dotfiles' is dirty
building the system configuration...
warning: Git tree '/home/tom/.dotfiles' is dirty
Warning: The unit file, source configuration file or drop-ins of local-fs.target changed on disk. Run 'systemctl daemon-reload' to reload units.
Warning: The unit file, source configuration file or drop-ins of remote-fs.target changed on disk. Run 'systemctl daemon-reload' to reload units.
activating the configuration...
setting up /etc...
restarting systemd...
reloading user units for tom...
setting up tmpfiles
the following new units were started: docker.service, docker.socket
16:29:12
@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

Show newer messages


Back to Room ListRoom Version: 9