Move audio settings from common to desktop
This commit is contained in:
parent
ccd389caec
commit
000c3ac2dc
|
@ -1,6 +1,7 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
inputs,
|
inputs,
|
||||||
|
common,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [inputs.home-manager.nixosModules.home-manager];
|
imports = [inputs.home-manager.nixosModules.home-manager];
|
||||||
|
@ -43,7 +44,7 @@
|
||||||
roboto
|
roboto
|
||||||
|
|
||||||
# nerdfonts
|
# nerdfonts
|
||||||
(nerdfonts.override {fonts = ["FiraCode" "JetBrainsMono"];})
|
(nerdfonts.override {fonts = ["FiraCode"];})
|
||||||
];
|
];
|
||||||
|
|
||||||
# use fonts specified by user rather than default ones
|
# use fonts specified by user rather than default ones
|
||||||
|
@ -56,7 +57,7 @@
|
||||||
defaultFonts = {
|
defaultFonts = {
|
||||||
serif = ["Noto Serif" "Noto Color Emoji"];
|
serif = ["Noto Serif" "Noto Color Emoji"];
|
||||||
sansSerif = ["Noto Sans" "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"];
|
emoji = ["Noto Color Emoji"];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -94,25 +95,13 @@
|
||||||
LC_TIME = "en_GB.UTF-8";
|
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 common configuration
|
||||||
home-manager = {
|
home-manager = {
|
||||||
useGlobalPkgs = true;
|
useGlobalPkgs = true;
|
||||||
useUserPackages = false;
|
useUserPackages = false;
|
||||||
extraSpecialArgs = {inputs = inputs;};
|
extraSpecialArgs = {inputs = inputs;};
|
||||||
users.root = {
|
users.root = {
|
||||||
imports = [../home/env/bash.nix ../home/env/starship.nix];
|
imports = [common.home.env];
|
||||||
home = {
|
home = {
|
||||||
username = "root";
|
username = "root";
|
||||||
homeDirectory = "/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; [
|
environment.systemPackages = with pkgs; [
|
||||||
gsettings-desktop-schemas
|
gsettings-desktop-schemas
|
||||||
pavucontrol
|
pavucontrol
|
||||||
pamixer
|
|
||||||
pulseaudio
|
|
||||||
grim
|
grim
|
||||||
slurp
|
slurp
|
||||||
];
|
];
|
||||||
security.pam.services.swaylock = {};
|
security = {
|
||||||
|
pam.services.swaylock = {};
|
||||||
|
rtkit.enable = true;
|
||||||
|
};
|
||||||
|
sound.enable = true;
|
||||||
|
hardware.pulseaudio.enable = false;
|
||||||
services = {
|
services = {
|
||||||
|
pipewire = {
|
||||||
|
enable = true;
|
||||||
|
alsa.enable = true;
|
||||||
|
alsa.support32Bit = true;
|
||||||
|
pulse.enable = true;
|
||||||
|
};
|
||||||
blueman.enable = true;
|
blueman.enable = true;
|
||||||
gvfs.enable = true;
|
gvfs.enable = true;
|
||||||
tumbler.enable = true;
|
tumbler.enable = true;
|
||||||
|
@ -22,23 +38,5 @@
|
||||||
thunar-volman
|
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