mirror of
https://forge.katzen.cafe/schrottkatze/nix-configs.git
synced 2024-11-25 06:18:44 +01:00
meow
This commit is contained in:
parent
9f66453c4a
commit
ceccab3cb9
12
common.nix
12
common.nix
|
@ -41,8 +41,8 @@ with builtins;
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
openssh = {
|
openssh = {
|
||||||
passwordAuthentication = false;
|
settings.PasswordAuthentication = false;
|
||||||
kbdInteractiveAuthentication = false;
|
settings.KbdInteractiveAuthentication = false;
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -63,10 +63,10 @@ with builtins;
|
||||||
home.sessionVariables.TZ = nixosConfig.time.timeZone;
|
home.sessionVariables.TZ = nixosConfig.time.timeZone;
|
||||||
};
|
};
|
||||||
|
|
||||||
nixpkgs.config.packageOverrides = pkgs: {
|
#nixpkgs.config.packageOverrides = pkgs: {
|
||||||
sudo = pkgs.sudo.override { withInsults = true; };
|
#sudo = pkgs.sudo.override { withInsults = true; };
|
||||||
};
|
#};
|
||||||
security.sudo.extraConfig = "Defaults insults";
|
#security.sudo.extraConfig = "Defaults insults";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -111,13 +111,12 @@
|
||||||
# _JAVA_OPTIONS = "-Dsun.java2d.uiScale=2";
|
# _JAVA_OPTIONS = "-Dsun.java2d.uiScale=2";
|
||||||
# };
|
# };
|
||||||
|
|
||||||
hardware.bluetooth.enable = true;
|
hardware.keyboard.uhk.enable = true;
|
||||||
hardware.keyboard.uhk.enable = true;
|
hardware.enableRedistributableFirmware = true;
|
||||||
|
|
||||||
|
|
||||||
# missing: menu-qalc picom-jonaburg
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
# TODO: clean up.
|
android-tools
|
||||||
];
|
];
|
||||||
|
|
||||||
environment.pathsToLink = [
|
environment.pathsToLink = [
|
||||||
|
@ -126,6 +125,8 @@
|
||||||
|
|
||||||
services.blueman.enable = true;
|
services.blueman.enable = true;
|
||||||
|
|
||||||
|
programs.adb.enable = true;
|
||||||
|
|
||||||
services.gnome.gnome-keyring.enable = true;
|
services.gnome.gnome-keyring.enable = true;
|
||||||
programs.seahorse.enable = true;
|
programs.seahorse.enable = true;
|
||||||
security.pam.services.jade.enableGnomeKeyring = true;
|
security.pam.services.jade.enableGnomeKeyring = true;
|
||||||
|
|
|
@ -1,30 +1,2 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
pkgs.writeShellScriptBin "searchwolf" ''
|
pkgs.writeShellScriptBin "searchwolf" builtins.readFile ./searchwolf.sh
|
||||||
echo "retv $ROFI_RETV"
|
|
||||||
if [ x"$@" = x"exit" ]; then
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
case $ROFI_RETV in
|
|
||||||
0)
|
|
||||||
;;
|
|
||||||
1)
|
|
||||||
if [ $ROFI_DATA = x"" ]; then
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
coproc ( librewolf --new-tab "$(echo $ROFI_DATA | jq -r.[''${@%%.*}])" > /dev/null 2>&1 )
|
|
||||||
exit 0
|
|
||||||
;;
|
|
||||||
2)
|
|
||||||
ddgrout=$(ddgr --json --num=25 "$@")
|
|
||||||
|
|
||||||
for i in $(echo $ddgrout | jq -r 'keys | @sh'); do
|
|
||||||
title=$(echo $ddgrout | jq -r .[$i].title)
|
|
||||||
url=$(echo $ddgrout | jq -r .[$i].url)
|
|
||||||
echo "$i. $title ($url)"
|
|
||||||
done
|
|
||||||
|
|
||||||
echo -e "\0data\x1f$(echo $ddgrout | jq -r .[].url | jq -sRc '. | split("\n") | [ .[] | select(length > 0) ]')"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
''
|
|
||||||
|
|
28
scripts/desktop/searchwolf.sh
Normal file
28
scripts/desktop/searchwolf.sh
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
|
||||||
|
echo "retv $ROFI_RETV"
|
||||||
|
if [ x"$@" = x"exit" ]; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
case $ROFI_RETV in
|
||||||
|
0)
|
||||||
|
;;
|
||||||
|
1)
|
||||||
|
if [ $ROFI_DATA = x"" ]; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
coproc ( librewolf --new-tab "$(echo $ROFI_DATA | jq -r.[${@%%.*}])" > /dev/null 2>&1 )
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
2)
|
||||||
|
ddgrout=$(ddgr --json --num=25 "$@")
|
||||||
|
|
||||||
|
for i in $(echo $ddgrout | jq -r 'keys | @sh'); do
|
||||||
|
title=$(echo $ddgrout | jq -r .[$i].title)
|
||||||
|
url=$(echo $ddgrout | jq -r .[$i].url)
|
||||||
|
echo "$i. $title ($url)"
|
||||||
|
done
|
||||||
|
|
||||||
|
echo -e "\0data\x1f$(echo $ddgrout | jq -r .[].url | jq -sRc '. | split("\n") | [ .[] | select(length > 0) ]')"
|
||||||
|
;;
|
||||||
|
esac
|
Loading…
Reference in a new issue