This commit is contained in:
Yuka 2021-10-22 23:46:25 +02:00
parent 0fe50a9c62
commit 6bf257dbbb
Signed by untrusted user: Yuka
GPG key ID: B95AE06334AFF6BA
3 changed files with 10 additions and 9 deletions

View file

@ -23,4 +23,4 @@ set -x
system_drv=$(nix-instantiate "<nixpkgs/nixos>" -I $sources -I "nixos-config=$PWD/hosts/$host/configuration.nix" | head -n1)
nix-copy-closure --to $target $system_drv
system=$(ssh $target "nix-store --realise $system_drv")
ssh $target "sudo nix-env -p /nix/var/nix/profiles/system -i $system && /nix/var/nix/profiles/system/bin/switch-to-configuration $mode"
ssh $target "sudo nix-env -p /nix/var/nix/profiles/system -i $system && sudo /nix/var/nix/profiles/system/bin/switch-to-configuration $mode"

View file

@ -7,14 +7,14 @@
../../common
# services
#../../shared-services/pulseaudio.nix
../../shared-services/pulseaudio.nix
#../../shared-services/nfs-server.nix
#../../shared-services/mpd.nix
#../../shared-services/ympd.nix
#../../shared-services/spotifyd.nix
#../../shared-services/desktop.nix
#../../shared-services/vnc.nix
#../../shared-services/webserver.nix
../../shared-services/mpd.nix
../../shared-services/ympd.nix
../../shared-services/spotifyd.nix
../../shared-services/desktop.nix
../../shared-services/vnc.nix
../../shared-services/webserver.nix
];
users.users.c3h = {
isNormalUser = true;
@ -36,7 +36,7 @@
hardware.raspberry-pi."4" = {
fkms-3d.enable = true;
audio.enable = true;
#audio.enable = true;
};
system.stateVersion = "21.05";

View file

@ -8,4 +8,5 @@
hardware.pulseaudio.package = pkgs.pulseaudio;
hardware.pulseaudio.tcp.enable = true;
hardware.pulseaudio.tcp.anonymousClients.allowedIpRanges = [ "127.0.0.0/8" "::/64" "10.23.42.0/24" ];
environment.variables.PULSE_SERVER = "127.0.0.1";
}