koishi: Mic mute + networkmanager

This commit is contained in:
kat witch 2021-11-11 19:47:18 +00:00
parent 6149da041a
commit 5459fddb01
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
5 changed files with 33 additions and 8 deletions

View file

@ -55,7 +55,7 @@
networking = {
hostId = "dddbb888";
useDHCP = false;
wireless = {
/* wireless = {
enable = true;
userControlled.enable = true;
interfaces = singleton "wlp3s0";
@ -65,7 +65,7 @@
inherit (config.network.addresses.private.nixos.ipv4) address;
prefixLength = 24;
};
};
}; */
defaultGateway = config.network.privateGateway;
};

View file

@ -31,7 +31,7 @@
x270
intel
laptop
wifi
networkmanager
];
};
eeepc-1015pem = {

View file

@ -0,0 +1,29 @@
{ config, lib, ... }: with lib; {
options = {
home-manager.users = let
applets = { config, nixos, ... }: {
xsession.preferStatusNotifierItems = true;
services = {
network-manager-applet.enable = true;
blueman-applet.enable = true;
};
};
in mkOption {
type = types.attrsOf (types.submoduleWith {
modules = singleton applets;
});
};
};
config = {
hardware.bluetooth.enable = true;
services.blueman.enable = true;
networking = {
networkmanager = {
enable = true;
connectionConfig = {
"ipv6.ip6-privacy" = mkForce 0;
};
};
};
};
}

View file

@ -227,6 +227,7 @@ let lockCommand = config.programs.swaylock.script; in
"XF86AudioRaiseVolume" = "exec --no-startup-id ${pactl} set-sink-volume @DEFAULT_SINK@ +5%";
"XF86AudioMute" = "exec --no-startup-id ${pactl} set-sink-mute @DEFAULT_SINK@ toggle";
"XF86AudioMute+Shift" = "exec --no-startup-id ${pactl} set-source-mute @DEFAULT_SOURCE@ toggle";
"XF86AudioMicMute" = "exec --no-startup-id ${pactl} set-source-mute @DEFAULT_SOURCE@ toggle";
"XF86MonBrightnessDown" = "exec ${pkgs.light}/bin/light -U 5";
"XF86MonBrightnessUp" = "exec ${pkgs.light}/bin/light -A 5";