25 lines
662 B
Nix
25 lines
662 B
Nix
{ pkgs, config, lib, ... }: let
|
|
cfg = config.grimmShared;
|
|
in {
|
|
config = with cfg; lib.mkIf (enable && network) {
|
|
networking.networkmanager.enable = true;
|
|
networking.useDHCP = lib.mkDefault true;
|
|
networking.firewall.enable = true;
|
|
|
|
services.blueman.enable = true;
|
|
hardware.bluetooth.enable = true;
|
|
|
|
systemd.user.services.mpris-proxy = {
|
|
description = "Mpris proxy";
|
|
after = [ "network.target" "sound.target" ];
|
|
wantedBy = [ "default.target" ];
|
|
serviceConfig.ExecStart = "${pkgs.bluez}/bin/mpris-proxy";
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
wireguard-tools
|
|
bluetuith
|
|
];
|
|
};
|
|
}
|