Move audio settings from common to desktop

This commit is contained in:
Evie Litherland-Smith 2023-07-15 10:33:52 +01:00
parent ccd389caec
commit 000c3ac2dc
2 changed files with 25 additions and 38 deletions

View file

@ -1,6 +1,7 @@
{
pkgs,
inputs,
common,
...
}: {
imports = [inputs.home-manager.nixosModules.home-manager];
@ -43,7 +44,7 @@
roboto
# nerdfonts
(nerdfonts.override {fonts = ["FiraCode" "JetBrainsMono"];})
(nerdfonts.override {fonts = ["FiraCode"];})
];
# use fonts specified by user rather than default ones
@ -56,7 +57,7 @@
defaultFonts = {
serif = ["Noto Serif" "Noto Color Emoji"];
sansSerif = ["Noto Sans" "Noto Color Emoji"];
monospace = ["JetBrainsMono Nerd Font" "Noto Color Emoji"];
monospace = ["FiraCode Nerd Font" "Noto Color Emoji"];
emoji = ["Noto Color Emoji"];
};
};
@ -94,25 +95,13 @@
LC_TIME = "en_GB.UTF-8";
};
# Enable sound with pipewire.
sound.enable = true;
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
programs.noisetorch.enable = true;
# Home manager common configuration
home-manager = {
useGlobalPkgs = true;
useUserPackages = false;
extraSpecialArgs = {inputs = inputs;};
users.root = {
imports = [../home/env/bash.nix ../home/env/starship.nix];
imports = [common.home.env];
home = {
username = "root";
homeDirectory = "/root";

View file

@ -1,15 +1,31 @@
{pkgs, inputs, ...}: {
imports = [inputs.hyprland.nixosModules.default];
{
pkgs,
inputs,
...
}: {
imports = [
inputs.hyprland.nixosModules.default
./common.nix
];
environment.systemPackages = with pkgs; [
gsettings-desktop-schemas
pavucontrol
pamixer
pulseaudio
grim
slurp
];
security.pam.services.swaylock = {};
security = {
pam.services.swaylock = {};
rtkit.enable = true;
};
sound.enable = true;
hardware.pulseaudio.enable = false;
services = {
pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
blueman.enable = true;
gvfs.enable = true;
tumbler.enable = true;
@ -22,23 +38,5 @@
thunar-volman
];
};
chromium = {
enable = true;
extensions = [
"cjpalhdlnbpafiamejdnhcphjbkeiagm" # uBlock Origin
"fnaicdffflnofjppbagibeoednhnbjhg" # Floccus
"nngceckbapebfimnlniiiahkandclblb" # Bitwarden
"dphilobhebphkdjbpfohgikllaljmgbn" # Simplelogin
];
extraOpts = {
"BrowserSignin" = 0;
"SyncDisabled" = true;
"PasswordManagerEnabled" = false;
"SpellcheckEnabled" = true;
"SpellcheckLanguage" = ["en-GB"];
};
defaultSearchProviderSearchURL = "https://duckduckgo.com/?q={searchTerms}";
defaultSearchProviderEnabled = true;
};
};
}