Move audio settings from common to desktop
This commit is contained in:
parent
ccd389caec
commit
000c3ac2dc
|
@ -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";
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue