29 Apr 2023 |
@industrial:matrix.org | It also contains a config, that socket file | 16:25:42 |
@industrial:matrix.org | 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.org | oh sudo | 16:26:39 |
@industrial:matrix.org | 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 | oooh, that would explain the difference | 16:27:52 |
Minijackson | you can use nixos-rebuild --flake '.#drakkar' | 16:28:18 |
@industrial:matrix.org | 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 | is /etc/systemd/user/pipewire-pulse.socket correct now? | 16:30:05 |
@industrial:matrix.org | 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:matrix.org | 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:matrix.org | 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:matrix.org | ok | 16:39:51 |
@industrial:matrix.org | Well, it works. Now I can enjoy my new speaker setup ;) thanks!~ | 16:40:35 |
Minijackson | sure! | 16:40:44 |
1 May 2023 |
@olafklingt:matrix.org | I wonder if musnix is set up properly on my laptop. does anyone know how to check if for example the pam limits are set as expected? | 02:21:31 |
Minijackson | In reply to @olafklingt:matrix.org I wonder if musnix is set up properly on my laptop. does anyone know how to check if for example the pam limits are set as expected? you can check with ulimit -Sa / ulimit -Ha | 08:08:06 |
7 May 2023 |
| @lotte:chir.rs joined the room. | 07:42:44 |
8 May 2023 |
| @lotte:chir.rs changed their profile picture. | 07:06:41 |
| @bujiraso:matrix.org joined the room. | 19:19:22 |
| ester 🐇 joined the room. | 22:21:59 |
12 May 2023 |
| @federicodschonborn:matrix.org changed their profile picture. | 00:58:26 |
| @federicodschonborn:matrix.org changed their profile picture. | 19:34:07 |
| @federicodschonborn:matrix.org changed their display name from Federico Schonborn to Federico Damián Schonborn. | 19:34:53 |
18 May 2023 |
| @yuu:matrix.org left the room. | 14:21:30 |