copy nb configuration and modules
This commit is contained in:
38
utils/modules/snapclient.nix
Normal file
38
utils/modules/snapclient.nix
Normal file
@@ -0,0 +1,38 @@
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
|
||||
# security.rtkit.enable = true;
|
||||
# services.pipewire = {
|
||||
# enable = true;
|
||||
# alsa.enable = true;
|
||||
# alsa.support32Bit = true;
|
||||
# pulse.enable = true;
|
||||
#
|
||||
# };
|
||||
sound.enable = true;
|
||||
hardware.pulseaudio.enable = true;
|
||||
hardware.pulseaudio.support32Bit = true;
|
||||
services.getty.autologinUser = "snapclient";
|
||||
|
||||
users.groups.snapclient = {};
|
||||
users.users.snapclient = {
|
||||
isNormalUser = true;
|
||||
group = "snapclient";
|
||||
extraGroups = [ "audio" "pipewire" ];
|
||||
};
|
||||
|
||||
systemd.user.services.snapclient = {
|
||||
wantedBy = [
|
||||
"default.target"
|
||||
];
|
||||
after = [
|
||||
"network.target"
|
||||
];
|
||||
serviceConfig = {
|
||||
# User = "snapclient";
|
||||
# Group = "snapclient";
|
||||
ExecStart = "${pkgs.snapcast}/bin/snapclient -h mopidy.cloonar.com -p 1704 --player pulse";
|
||||
Restart = "on-failure";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user