Switch tu pulseaudio

This commit is contained in:
2023-05-01 19:36:10 +09:00
parent 2582499722
commit 12d8e79032
3 changed files with 25 additions and 10 deletions

View File

@@ -20,6 +20,12 @@
options = [ "size=4G" "mode=755" ];
};
fileSystems."/tmp" = {
device = "none";
fsType = "tmpfs";
options = [ "size=8G" "mode=755" ];
};
fileSystems."/nix" = {
device = "/dev/disk/by-label/fuhen";
fsType = "ext4";

View File

@@ -28,6 +28,7 @@ in {
(google-chrome.override {
commandLineArgs = ["--force-dark-mode" "--enable-features=WebUIDarkMode"];
})
discord
firefox
mpv
xdg-utils

View File

@@ -12,12 +12,20 @@ in {
services.printing.enable = true;
security.rtkit.enable = true;
security.polkit.enable = true;
services.pipewire = {
# Pipewire just refuses to have a decent mic so I will use pulseaudio for now
hardware.pulseaudio = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
support32Bit = true;
};
# services.pipewire = {
# enable = true;
# alsa.enable = true;
# alsa.support32Bit = true;
# jack.enable = true;
# pulse.enable = true;
# socketActivation = true;
# };
hardware.bluetooth.enable = true;
# Autostart hyprland and display lockscreen as greeter
@@ -41,9 +49,9 @@ in {
systemd = {
user.services.polkit-gnome-authentication-agent-1 = {
description = "polkit-gnome-authentication-agent-1";
wantedBy = [ "graphical-session.target" ];
wants = [ "graphical-session.target" ];
after = [ "graphical-session.target" ];
wantedBy = ["graphical-session.target"];
wants = ["graphical-session.target"];
after = ["graphical-session.target"];
serviceConfig = {
Type = "simple";
ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
@@ -55,16 +63,16 @@ in {
};
security.sudo.extraConfig = ''
Defaults lecture="never"
Defaults lecture="never"
'';
boot = {
kernelParams = [ "quiet" "splash" ];
kernelParams = ["quiet" "splash"];
consoleLogLevel = 0;
initrd.verbose = false;
plymouth = {
enable = true;
themePackages = [ pkgs.adi1090x-plymouth ];
themePackages = [pkgs.adi1090x-plymouth];
theme = "colorful_loop";
};
};