diff --git a/modules/features/nixos-base.nix b/modules/features/nixos-base.nix index e515951..fe6f474 100644 --- a/modules/features/nixos-base.nix +++ b/modules/features/nixos-base.nix @@ -42,5 +42,17 @@ security.polkit.enable = true; # polkit services.gnome.gnome-keyring.enable = true; # secret service security.pam.services.swaylock = {}; + + # Enable sound with pipewire. + services.pulseaudio.enable = false; + security.rtkit.enable = true; # PulseAudio server uses this to acquire realtime priority. + services.pipewire = { + enable = true; + alsa.enable = true; + alsa.support32Bit = true; + pulse.enable = true; + # If you want to use JACK applications, uncomment this + #jack.enable = true; + }; }; } \ No newline at end of file diff --git a/modules/hosts/john-p14s/configuration.nix b/modules/hosts/john-p14s/configuration.nix index e842908..b3b8a0d 100644 --- a/modules/hosts/john-p14s/configuration.nix +++ b/modules/hosts/john-p14s/configuration.nix @@ -44,22 +44,6 @@ services.libinput.enable = true; # Enable touchpad support (enabled default in most desktopManager). services.fprintd.enable = true; # Enables fingerprint sensor - # Enable sound with pipewire. - services.pulseaudio.enable = false; - security.rtkit.enable = true; # PulseAudio server uses this to acquire realtime priority. - services.pipewire = { - enable = true; - alsa.enable = true; - alsa.support32Bit = true; - pulse.enable = true; - # If you want to use JACK applications, uncomment this - #jack.enable = true; - - # use the example session manager (no others are packaged yet so this is enabled by default, - # no need to redefine it in your config for now) - # media-session.enable = true; - }; - home-manager.users.root = { imports = with inputs.self.modules.homeManager; [ rebuild