From 33d5b06ec1773f3639034e86d3cd969cc623afca Mon Sep 17 00:00:00 2001 From: Dennis Schoepf Date: Sat, 22 Nov 2025 15:13:25 +0100 Subject: [PATCH] wip: dnsc-machine setup --- home/linux.nix | 12 +++++++++++- hosts/dnsc-machine/default.nix | 18 +++++++++++++++++- 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/home/linux.nix b/home/linux.nix index 0aedc7b..47f52e2 100644 --- a/home/linux.nix +++ b/home/linux.nix @@ -27,8 +27,8 @@ reversal-icon-theme fnm libnotify + bluez bluetui - iwgtk ]; imports = [ @@ -74,4 +74,14 @@ size = 24; }; }; + + # Systemd Services + systemd.user.services = { + mpris-proxy = { + description = "Mpris proxy"; + after = [ "network.target" "sound.target" ]; + wantedBy = [ "default.target" ]; + serviceConfig.ExecStart = "${pkgs.bluez}/bin/mpris-proxy"; + }; + }; } diff --git a/hosts/dnsc-machine/default.nix b/hosts/dnsc-machine/default.nix index 6c136d2..07ce592 100644 --- a/hosts/dnsc-machine/default.nix +++ b/hosts/dnsc-machine/default.nix @@ -50,8 +50,24 @@ videoDrivers = [ "nvidia" ]; }; - # Nvidia + # Hardware Setup hardware = { + pulseaudio = { + enable = true; + package = pkgs.pulseaudioFull; + extraConfig = '' + load-module module-switch-on-connect + ''; + }; + bluetooth = { + enable = true; + settings = { + General = { + Enable = "Source,Sink,Media,Socket"; + Experimental = true; + }; + }; + }; graphics.enable = true; nvidia = { modesetting.enable = true;