added bzmenu and iwmenu to sway/waybar
This commit is contained in:
parent
155672672f
commit
56708c463d
4 changed files with 58 additions and 41 deletions
|
|
@ -17,6 +17,8 @@
|
|||
# nixpkgs-zoom.url = "github:NixOS/nixpkgs/79077930a404da8b7cd7ecf2fe05e8a80347e340";
|
||||
nixvim.url = "github:nix-community/nixvim";
|
||||
nixvim.inputs.nixpkgs.follows = "nixpkgs";
|
||||
bzmenu.url = "github:e-tho/bzmenu";
|
||||
iwmenu.url = "github:e-tho/iwmenu";
|
||||
};
|
||||
|
||||
outputs = inputs@{ self, nixpkgs, nix, nixpkgs-stable, nixos-hardware
|
||||
|
|
|
|||
|
|
@ -29,6 +29,8 @@ in {
|
|||
# poweralertd
|
||||
# prusa-slicer
|
||||
# thunderbird
|
||||
inputs.bzmenu.packages.${pkgs.system}.default
|
||||
inputs.iwmenu.packages.${pkgs.system}.default
|
||||
at-spi2-core
|
||||
blueberry
|
||||
calibre
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@
|
|||
format-connected = "^bt";
|
||||
format-off = "!bt";
|
||||
format-disabled = "xbt";
|
||||
on-click = "bluetoogle";
|
||||
on-click = "bzmenu -l rofi";
|
||||
tooltip-format = "{status}";
|
||||
};
|
||||
backlight = {
|
||||
|
|
@ -125,6 +125,7 @@
|
|||
format-linked = "{ifname} (No IP)";
|
||||
format-disconnected = "Disconnected";
|
||||
format-alt = "{ifname}: {ipaddr}/{cidr}";
|
||||
on-click = "iwmenu -l rofi";
|
||||
};
|
||||
pulseaudio = {
|
||||
format = "v:{volume}%";
|
||||
|
|
|
|||
|
|
@ -41,11 +41,58 @@ in {
|
|||
./tlp.nix
|
||||
];
|
||||
|
||||
# Enable networking
|
||||
networking.networkmanager.enable = true;
|
||||
networking.enableIPv6 = true;
|
||||
networking.networkmanager.wifi.powersave = true;
|
||||
networking.useDHCP = false;
|
||||
networking = {
|
||||
networkmanager.enable = true;
|
||||
enableIPv6 = true;
|
||||
networkmanager = {
|
||||
wifi = {
|
||||
powersave = true;
|
||||
};
|
||||
};
|
||||
useDHCP = false;
|
||||
wireless = {
|
||||
iwd = {
|
||||
enable = true;
|
||||
settings = {
|
||||
IPv6 = {
|
||||
Enabled = true;
|
||||
};
|
||||
Settings = {
|
||||
AutoConnect = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
firewall = {
|
||||
enable = true;
|
||||
trustedInterfaces = [ "tailscale0" ]; # always allow traffic from your Tailscale network
|
||||
checkReversePath = "loose";
|
||||
allowedUDPPorts = [ config.services.tailscale.port ];
|
||||
allowedTCPPortRanges = [{
|
||||
from = 1714;
|
||||
to = 1764;
|
||||
}];
|
||||
allowedUDPPortRanges = [{
|
||||
from = 1714;
|
||||
to = 1764;
|
||||
}];
|
||||
allowedTCPPorts = [ 22 ];
|
||||
interfaces = {
|
||||
"tailscale0" = {
|
||||
allowedTCPPorts = [ 22 8080 8443 ];
|
||||
allowedTCPPortRanges = [{
|
||||
from = 1714;
|
||||
to = 1764;
|
||||
}];
|
||||
allowedUDPPortRanges = [{
|
||||
from = 1714;
|
||||
to = 1764;
|
||||
}];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
# Set your time zone.
|
||||
time = {
|
||||
|
|
@ -290,41 +337,6 @@ in {
|
|||
|
||||
nix.nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
|
||||
|
||||
# Open ports in the firewall.
|
||||
networking.firewall = {
|
||||
enable = true;
|
||||
# always allow traffic from your Tailscale network
|
||||
trustedInterfaces = [ "tailscale0" ];
|
||||
checkReversePath = "loose";
|
||||
|
||||
# allow the Tailscale UDP port through the firewall
|
||||
allowedUDPPorts = [ config.services.tailscale.port ];
|
||||
allowedTCPPortRanges = [{
|
||||
from = 1714;
|
||||
to = 1764;
|
||||
}];
|
||||
allowedUDPPortRanges = [{
|
||||
from = 1714;
|
||||
to = 1764;
|
||||
}];
|
||||
|
||||
# allow you to SSH in over the public internet
|
||||
allowedTCPPorts = [ 22 ];
|
||||
interfaces = {
|
||||
"tailscale0" = {
|
||||
allowedTCPPorts = [ 22 8080 8443 ];
|
||||
allowedTCPPortRanges = [{
|
||||
from = 1714;
|
||||
to = 1764;
|
||||
}];
|
||||
allowedUDPPortRanges = [{
|
||||
from = 1714;
|
||||
to = 1764;
|
||||
}];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# This value determines the NixOS release from which the default
|
||||
# settings for stateful data, like file locations and database versions
|
||||
# on your system were taken. It's perfectly fine and recommended to leavecatenate(variables, "bootdev", bootdev)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue