Reorganise hardware vs host config, tidy settings and services

This commit is contained in:
ediblerope 2026-04-01 21:14:16 +01:00
parent effc4da3a6
commit 93ea194da4
13 changed files with 185 additions and 195 deletions

View file

@ -1,21 +1,23 @@
# audio.nix
{ config, pkgs, lib, ... }:
{
services.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
config = lib.mkIf (lib.elem config.networking.hostName [ "FredOS-Gaming" "FredOS-Macbook" ]) {
services.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
extraConfig."pipewire-pulse"."10-quirk-rules" = {
"pulse.rules" = [
{
matches = [ { "application.name" = "~Chromium.*"; } ];
actions = { quirks = [ "block-source-volume" ]; };
}
];
extraConfig."pipewire-pulse"."10-quirk-rules" = {
"pulse.rules" = [
{
matches = [ { "application.name" = "~Chromium.*"; } ];
actions = { quirks = [ "block-source-volume" ]; };
}
];
};
};
};
}

View file

@ -2,16 +2,13 @@
{ config, pkgs, lib, ... }:
{
config = lib.mkIf (lib.elem config.networking.hostName [ "FredOS-Gaming" "FredOS-Macbook" "FredOS-Mediaserver" ]) {
# Define a user account. Don't forget to set a password with 'passwd'.
users.users.fred = {
isNormalUser = true;
description = "fred";
extraGroups = [ "networkmanager" "wheel" "docker" ];
packages = with pkgs; [
bazaar
fastfetch
];
};
# Define a user account. Don't forget to set a password with 'passwd'.
users.users.fred = {
isNormalUser = true;
description = "fred";
extraGroups = [ "networkmanager" "wheel" "docker" ];
packages = with pkgs; [
bazaar
];
};
}