mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
koishi: Mic mute + networkmanager
This commit is contained in:
parent
6149da041a
commit
5459fddb01
5 changed files with 33 additions and 8 deletions
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@
|
|||
x270
|
||||
intel
|
||||
laptop
|
||||
wifi
|
||||
networkmanager
|
||||
];
|
||||
};
|
||||
eeepc-1015pem = {
|
||||
|
|
|
|||
29
config/profiles/hardware/networkmanager.nix
Normal file
29
config/profiles/hardware/networkmanager.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -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";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +0,0 @@
|
|||
final: prev: {
|
||||
linuxPackagesFor = kernel: (final.linuxPackagesFor kernel).extend (_: kfinal: {
|
||||
zfsUnstable = kfinal.zfsUnstable.overrideAttrs (old: { meta = old.meta // { broken = false; }; });
|
||||
});
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue