mirror of
https://github.com/deltathetawastaken/dotfiles.git
synced 2025-12-06 07:16:37 +03:00
ayugram
This commit is contained in:
parent
4608c137ec
commit
69ccdcb394
|
|
@ -15,6 +15,7 @@
|
||||||
telegram-desktop-patched-unstable.url = "github:shwewo/telegram-desktop-patched";
|
telegram-desktop-patched-unstable.url = "github:shwewo/telegram-desktop-patched";
|
||||||
agenix.url = "github:ryantm/agenix";
|
agenix.url = "github:ryantm/agenix";
|
||||||
agenix.inputs.darwin.follows = "";
|
agenix.inputs.darwin.follows = "";
|
||||||
|
ayugram-desktop.url = "github:shwewo/ayugram-desktop";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs @ { nixpkgs, nixpkgs-stable, nixpkgs-unstable, home-manager, home-manager-unstable, firefox, anyrun, agenix, ... }: {
|
outputs = inputs @ { nixpkgs, nixpkgs-stable, nixpkgs-unstable, home-manager, home-manager-unstable, firefox, anyrun, agenix, ... }: {
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@
|
||||||
wl-clipboard-x11
|
wl-clipboard-x11
|
||||||
(callPackage ../derivations/audiorelay.nix { })
|
(callPackage ../derivations/audiorelay.nix { })
|
||||||
(callPackage ../derivations/spotify.nix { })
|
(callPackage ../derivations/spotify.nix { })
|
||||||
(callPackage ../derivations/nu_plugin_dns.nix { })
|
#(callPackage ../derivations/nu_plugin_dns.nix { })
|
||||||
xorg.xwininfo
|
xorg.xwininfo
|
||||||
jq
|
jq
|
||||||
]) ++ (with unstable; [
|
]) ++ (with unstable; [
|
||||||
|
|
|
||||||
|
|
@ -5,14 +5,14 @@ let
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
default_interface=$(${pkgs.iproute2}/bin/ip route show default | ${pkgs.gawk}/bin/awk '/default/ {print $5}')
|
default_interface=$(${pkgs.iproute2}/bin/ip route show default | ${pkgs.gawk}/bin/awk '/default/ {print $5}')
|
||||||
interfaces=$(${pkgs.iproute2}/bin/ip -o -4 addr show | ${pkgs.gawk}/bin/awk '$4 ~ /\/24/ {print $2}' | sed -e ':a' -e 'N' -e '$!ba' -e 's/\n/|/g')
|
interfaces=$(${pkgs.iproute2}/bin/ip -o -4 addr show | ${pkgs.gawk}/bin/awk '$4 ~ /\/24/ {print $2}' | grep -v "wlp1s0" | sed -e ':a' -e 'N' -e '$!ba' -e 's/\n/|/g')
|
||||||
|
|
||||||
# The difference between default_interface and and default chose option is that default_interface is used to get dhcp from it, and default is for leave network as is without tweaking it (e.g. VPN/proxy/whatever)
|
# The difference between default_interface and and default chose option is that default_interface is used to get dhcp from it, and default is for leave network as is without tweaking it (e.g. VPN/proxy/whatever)
|
||||||
|
|
||||||
result=$(${pkgs.gnome.zenity}/bin/zenity --forms --title="Configuration" \
|
result=$(${pkgs.gnome.zenity}/bin/zenity --forms --title="Configuration" \
|
||||||
--text="Please configure your settings" \
|
--text="Please configure your settings" \
|
||||||
--add-combo="Browser:" --combo-values="google_chrome|ungoogled_chromium|firefox" \
|
--add-combo="Browser:" --combo-values="google_chrome|ungoogled_chromium|firefox" \
|
||||||
--add-combo="Network Interface:" --combo-values="default|"$interfaces \
|
--add-combo="Network Interface:" --combo-values="wlp1s0|default|"$interfaces \
|
||||||
--add-combo="DNS Server:" --combo-values="dhcp|1.1.1.1|8.8.8.8|77.88.8.1")
|
--add-combo="DNS Server:" --combo-values="dhcp|1.1.1.1|8.8.8.8|77.88.8.1")
|
||||||
|
|
||||||
if [[ -z $result ]]; then
|
if [[ -z $result ]]; then
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue