]> Skullheadx's Git Forge - nixos.git/commitdiff
modularize audio
authorSkullheadx <admonty1@protonmail.com>
Sun, 26 Apr 2026 04:37:44 +0000 (00:37 -0400)
committerSkullheadx <admonty1@protonmail.com>
Sun, 26 Apr 2026 04:37:44 +0000 (00:37 -0400)
audio.nix [new file with mode: 0644]
configuration.nix

diff --git a/audio.nix b/audio.nix
new file mode 100644 (file)
index 0000000..740e8a5
--- /dev/null
+++ b/audio.nix
@@ -0,0 +1,33 @@
+{ config, pkgs, ... }:
+{
+
+  services.pipewire = {
+    enable = true;
+    audio.enable = true;
+    pulse.enable = true;
+    alsa.enable = true;
+  };
+
+  services.pipewire.wireplumber.enable = true;
+  hardware = {
+    graphics = {
+      enable = true;
+    };
+  };
+
+#  services.mpd = {
+#    enable = true;
+#    musicDirectory = "${config.home.homeDirectory}/Music";
+#    playlistDirectory = "${config.home.homeDirectory}/.playlists";
+#    # mixer_type "none" # maybe mess around with this some time, it will turn off volume in rmpc, but apparently it will make the sound more quality for music
+#     extraConfig = ''
+#                            auto_update "yes"
+#                    audio_output {
+#                      type "pulse"
+#                      name "PipeWire Output"
+#                    }
+#                      '';
+#  };
+
+
+}
index f9a27cf2b961658b4291f2720bd48e90a9e19cab..e2f7cc3c3020a1556d20d401412e172ec8840329 100644 (file)
@@ -5,6 +5,7 @@
        ./lockscreen.nix
 ./x11.nix
 ./hjem.nix
+./audio.nix
   ];
 
   # Bootloader.
     # programs here, NOT in environment.systemPackages
   ];
 
-  services.pipewire = {
-    enable = true;
-    audio.enable = true;
-    pulse.enable = true;
-    alsa.enable = true;
-  };
-
-  services.pipewire.wireplumber.enable = true;
-  hardware = {
-    graphics = {
-      enable = true;
-    };
-  };
-
-#  services.mpd = {
-#    enable = true;
-#    musicDirectory = "${config.home.homeDirectory}/Music";
-#    playlistDirectory = "${config.home.homeDirectory}/.playlists";
-#    # mixer_type "none" # maybe mess around with this some time, it will turn off volume in rmpc, but apparently it will make the sound more quality for music
-#     extraConfig = ''
-#                            auto_update "yes"
-#                    audio_output {
-#                      type "pulse"
-#                      name "PipeWire Output"
-#                    }
-#                      '';
-#  };
-
 
   # Some programs need SUID wrappers, can be configured further or are
   # started in user sessions.