2024-01-18 23:03:00 +00:00
|
|
|
{ pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
2024-01-18 22:55:55 +00:00
|
|
|
imports = [
|
|
|
|
./hardware-configuration.nix
|
|
|
|
];
|
|
|
|
|
2024-01-19 00:51:37 +00:00
|
|
|
boot.loader.grub = {
|
|
|
|
efiSupport = true;
|
|
|
|
efiInstallAsRemovable = true;
|
|
|
|
device = "nodev";
|
|
|
|
};
|
|
|
|
|
2024-01-18 23:10:24 +00:00
|
|
|
beatific.hostName = "centroid";
|
|
|
|
beatific.defaults = {
|
|
|
|
nebula = false;
|
|
|
|
tvbSync = false;
|
|
|
|
};
|
|
|
|
|
2024-01-19 01:21:34 +00:00
|
|
|
networking.networkmanager.enable = true;
|
2024-01-19 04:36:37 +00:00
|
|
|
|
|
|
|
services.pipewire = {
|
|
|
|
enable = true;
|
|
|
|
alsa.enable = true;
|
|
|
|
alsa.support32Bit = true;
|
|
|
|
pulse.enable = true;
|
|
|
|
# To avoid needing an active user session, run a single system instance
|
|
|
|
systemWide = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
mpv # cli media player
|
|
|
|
];
|
|
|
|
|
|
|
|
users.users.tvb.extraGroups = [
|
2024-01-20 03:45:55 +00:00
|
|
|
"mopidy"
|
2024-01-19 04:36:37 +00:00
|
|
|
"networkmanager"
|
|
|
|
"pipewire"
|
|
|
|
];
|
2024-01-19 01:21:34 +00:00
|
|
|
|
2024-01-20 03:45:55 +00:00
|
|
|
users.groups.mopidy = {}; # rw group for media directory
|
|
|
|
users.users.mopidy.extraGroups = [
|
|
|
|
"mopidy"
|
|
|
|
"pipewire" # necessary to allow the system service to play sound
|
|
|
|
];
|
|
|
|
services.mopidy = {
|
|
|
|
enable = true;
|
|
|
|
extensionPackages = with pkgs; [
|
|
|
|
mopidy-musicbox-webclient
|
|
|
|
];
|
|
|
|
configuration = ''
|
|
|
|
[file]
|
|
|
|
media_dirs =
|
|
|
|
/media/music|Music
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2024-01-18 23:03:00 +00:00
|
|
|
system.stateVersion = "23.11";
|
2024-01-18 22:55:55 +00:00
|
|
|
}
|