Merge remote-tracking branch 'ni/master'
This commit is contained in:
commit
2c03c42bd6
@ -57,6 +57,7 @@
|
||||
"20.201.28.151"
|
||||
"20.205.243.166"
|
||||
"102.133.202.242"
|
||||
"20.248.137.48"
|
||||
"18.181.13.223"
|
||||
"54.238.117.237"
|
||||
"54.168.17.15"
|
||||
@ -70,6 +71,7 @@
|
||||
"20.201.28.152"
|
||||
"20.205.243.160"
|
||||
"102.133.202.246"
|
||||
"20.248.137.50"
|
||||
];
|
||||
publicKey = "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==";
|
||||
};
|
||||
|
@ -34,7 +34,7 @@ with import <stockholm/lib>;
|
||||
'')
|
||||
(filter (proto: entry.${proto} != null) ["tcp" "udp"])}
|
||||
'') (attrValues config.krebs.iana-etc.services)}
|
||||
cat ${pkgs.iana_etc}/etc/services
|
||||
cat ${pkgs.iana-etc}/etc/services
|
||||
} |
|
||||
sort -b -k 2,2 -u > $out
|
||||
'');
|
||||
|
@ -17,21 +17,10 @@ self: super: {
|
||||
repo = "flameshot";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-rZUiaS32C77tFJmEkw/9MGbVTVscb6LOCyWaWO5FyR4=";
|
||||
};
|
||||
patches = old.patches or [] ++ {
|
||||
"0.6.0" = [
|
||||
./flameshot/flameshot_imgur_0.6.0.patch
|
||||
];
|
||||
"0.9.0" = [
|
||||
./flameshot/flameshot_imgur_0.9.0.patch
|
||||
];
|
||||
"0.10.1" = [
|
||||
./flameshot/flameshot_imgur_0.9.0.patch
|
||||
];
|
||||
"0.10.2" = [
|
||||
./flameshot/flameshot_imgur_0.9.0.patch
|
||||
];
|
||||
}.${old.version} or [];
|
||||
};
|
||||
patches = old.patches or [] ++ [
|
||||
./flameshot/flameshot_imgur_0.10.2.patch
|
||||
];
|
||||
});
|
||||
|
||||
# https://github.com/proot-me/PRoot/issues/106
|
||||
|
@ -1,34 +0,0 @@
|
||||
--- a/src/tools/imgur/imguruploader.cpp
|
||||
+++ b/src/tools/imgur/imguruploader.cpp
|
||||
@@ -40,6 +40,7 @@
|
||||
#include <QTimer>
|
||||
#include <QJsonDocument>
|
||||
#include <QJsonObject>
|
||||
+#include <stdlib.h>
|
||||
|
||||
ImgurUploader::ImgurUploader(const QPixmap &capture, QWidget *parent) :
|
||||
QWidget(parent), m_pixmap(capture)
|
||||
@@ -74,7 +75,10 @@ void ImgurUploader::handleReply(QNetworkReply *reply) {
|
||||
QJsonObject json = response.object();
|
||||
QJsonObject data = json["data"].toObject();
|
||||
m_imageURL.setUrl(data["link"].toString());
|
||||
- m_deleteImageURL.setUrl(QString("https://imgur.com/delete/%1").arg(
|
||||
+ char *deleteImageURLPattern = secure_getenv("IMGUR_DELETE_URL");
|
||||
+ if (deleteImageURLPattern == NULL)
|
||||
+ deleteImageURLPattern = "https://imgur.com/delete/%1";
|
||||
+ m_deleteImageURL.setUrl(QString(deleteImageURLPattern).arg(
|
||||
data["deletehash"].toString()));
|
||||
onUploadOk();
|
||||
} else {
|
||||
@@ -105,7 +109,10 @@ void ImgurUploader::upload() {
|
||||
QString description = FileNameHandler().parsedPattern();
|
||||
urlQuery.addQueryItem("description", description);
|
||||
|
||||
- QUrl url("https://api.imgur.com/3/image");
|
||||
+ char *createImageURLPattern = secure_getenv("IMGUR_CREATE_URL");
|
||||
+ if (createImageURLPattern == NULL)
|
||||
+ createImageURLPattern = "https://api.imgur.com/3/image";
|
||||
+ QUrl url(createImageURLPattern);
|
||||
url.setQuery(urlQuery);
|
||||
QNetworkRequest request(url);
|
||||
request.setHeader(QNetworkRequest::ContentTypeHeader,
|
@ -1,6 +1,7 @@
|
||||
{ python, writeScriptBin, ... }:
|
||||
{ python3, writeScriptBin, ... }:
|
||||
|
||||
let
|
||||
python = python3;
|
||||
pythonEnv = python.withPackages (ps: [ ps.netaddr ]);
|
||||
in
|
||||
writeScriptBin "cidr2glob" ''
|
||||
@ -25,6 +26,6 @@ in
|
||||
if __name__ == "__main__":
|
||||
for cidr in sys.stdin:
|
||||
for glob in cidr2glob(cidr):
|
||||
print glob
|
||||
print(glob)
|
||||
|
||||
''
|
||||
|
28
krebs/5pkgs/simple/veroroute.nix
Normal file
28
krebs/5pkgs/simple/veroroute.nix
Normal file
@ -0,0 +1,28 @@
|
||||
{ pkgs }:
|
||||
|
||||
pkgs.stdenv.mkDerivation rec {
|
||||
pname = "veroroute";
|
||||
version = "2.28";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.gz";
|
||||
sha256 = "04dig0g4v1rz50mjj1k6jk99rqbg24hdx8kzrlwv0dlxm567lvc7";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
pkgs.qt5.qtbase
|
||||
];
|
||||
nativeBuildInputs = [
|
||||
pkgs.qt5.wrapQtAppsHook
|
||||
];
|
||||
|
||||
buildPhase = ''
|
||||
qmake Src/veroroute.pro
|
||||
make
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
sed -i 's;/usr;;g' veroroute-install.sh
|
||||
pkgdir=$out bash ./veroroute-install.sh
|
||||
'';
|
||||
}
|
@ -15,9 +15,9 @@ with import <stockholm/lib>;
|
||||
};
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
firefoxWrapper
|
||||
networkmanagerapplet
|
||||
environment.systemPackages = [
|
||||
pkgs.firefox
|
||||
pkgs.networkmanagerapplet
|
||||
(pkgs.pidgin-with-plugins.override {
|
||||
plugins = [ pkgs.pidginotr ];
|
||||
})
|
||||
|
@ -56,26 +56,26 @@ with import <stockholm/lib>;
|
||||
${pkgs.kmod}/bin/modprobe -v iwlwifi
|
||||
'';
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
chromium
|
||||
firefoxWrapper
|
||||
gimp
|
||||
iptables
|
||||
libreoffice
|
||||
plasma-pa
|
||||
environment.systemPackages = [
|
||||
pkgs.chromium
|
||||
pkgs.firefox
|
||||
pkgs.gimp
|
||||
pkgs.iptables
|
||||
pkgs.libreoffice
|
||||
pkgs.plasma-pa
|
||||
(pkgs.pidgin-with-plugins.override {
|
||||
plugins = [ pkgs.pidginotr ];
|
||||
})
|
||||
skype
|
||||
slock
|
||||
tinc_pre
|
||||
vim
|
||||
xsane
|
||||
pkgs.skypeforlinux
|
||||
pkgs.slock
|
||||
pkgs.tinc_pre
|
||||
pkgs.vim
|
||||
pkgs.xsane
|
||||
|
||||
#foomatic_filters
|
||||
#gutenprint
|
||||
#cups_pdf_filter
|
||||
#ghostscript
|
||||
#pkgs.foomatic_filters
|
||||
#pkgs.gutenprint
|
||||
#pkgs.cups_pdf_filter
|
||||
#pkgs.ghostscript
|
||||
];
|
||||
|
||||
|
||||
@ -97,7 +97,7 @@ with import <stockholm/lib>;
|
||||
];
|
||||
|
||||
fonts.fonts = [
|
||||
pkgs.xlibs.fontschumachermisc
|
||||
pkgs.xorg.fontschumachermisc
|
||||
];
|
||||
|
||||
services.xserver.enable = true;
|
||||
|
@ -21,19 +21,19 @@ with import <stockholm/lib>;
|
||||
systemd-boot.enable = true;
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
firefoxWrapper
|
||||
gimp
|
||||
kate
|
||||
libreoffice
|
||||
environment.systemPackages = [
|
||||
pkgs.firefox
|
||||
pkgs.gimp
|
||||
pkgs.kate
|
||||
pkgs.libreoffice
|
||||
(pkgs.pidgin-with-plugins.override {
|
||||
plugins = [ pkgs.pidginotr ];
|
||||
})
|
||||
sxiv
|
||||
texlive.combined.scheme-full
|
||||
vim
|
||||
xsane
|
||||
zathura
|
||||
pkgs.sxiv
|
||||
pkgs.texlive.combined.scheme-full
|
||||
pkgs.vim
|
||||
pkgs.xsane
|
||||
pkgs.zathura
|
||||
];
|
||||
|
||||
fileSystems = {
|
||||
|
@ -45,7 +45,9 @@ with import <stockholm/lib>;
|
||||
netcup
|
||||
nmap
|
||||
p7zip
|
||||
pass-otp
|
||||
(pkgs.pass.withExtensions (ext: [
|
||||
ext.pass-otp
|
||||
]))
|
||||
q
|
||||
qrencode
|
||||
texlive.combined.scheme-full
|
||||
|
@ -15,6 +15,7 @@ with import <stockholm/lib>;
|
||||
./bash
|
||||
./htop.nix
|
||||
./nets/hkw.nix
|
||||
./networkd.nix
|
||||
./nginx
|
||||
./pki
|
||||
./ssh.nix
|
||||
@ -46,7 +47,7 @@ with import <stockholm/lib>;
|
||||
|
||||
{
|
||||
# TODO check if both are required:
|
||||
nix.sandboxPaths = [ "/etc/protocols" pkgs.iana_etc.outPath ];
|
||||
nix.sandboxPaths = [ "/etc/protocols" pkgs.iana-etc.outPath ];
|
||||
|
||||
nix.requireSignedBinaryCaches = true;
|
||||
|
||||
|
@ -5,9 +5,9 @@
|
||||
# s:^NROFF\t.*:& -Wbreak:
|
||||
# '
|
||||
#'';
|
||||
environment.systemPackages = with pkgs; [
|
||||
manpages
|
||||
posix_man_pages
|
||||
xorg.xorgdocs
|
||||
environment.systemPackages = [
|
||||
pkgs.man-pages
|
||||
pkgs.posix_man_pages
|
||||
pkgs.xorg.xorgdocs
|
||||
];
|
||||
}
|
||||
|
4
tv/2configs/networkd.nix
Normal file
4
tv/2configs/networkd.nix
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
# often hangs
|
||||
systemd.services.systemd-networkd-wait-online.enable = false;
|
||||
}
|
@ -2,7 +2,7 @@
|
||||
|
||||
with import <stockholm/lib>;
|
||||
let
|
||||
pkg = pkgs.pulseaudioLight;
|
||||
pkg = pkgs.pulseaudio;
|
||||
runDir = "/run/pulse";
|
||||
|
||||
pkgs_i686 = pkgs.pkgsi686Linux;
|
||||
|
@ -38,7 +38,7 @@ in {
|
||||
];
|
||||
|
||||
fonts.fonts = [
|
||||
pkgs.xlibs.fontschumachermisc
|
||||
pkgs.xorg.fontschumachermisc
|
||||
];
|
||||
|
||||
services.xserver = {
|
||||
@ -128,7 +128,7 @@ in {
|
||||
config.imgur.xdg-open.browser = "/etc/profiles/per-user/tv/bin/cr";
|
||||
config.timeout = 200;
|
||||
})
|
||||
pkgs.pulseaudioLight.out
|
||||
pkgs.pulseaudio.out
|
||||
pkgs.rxvt_unicode
|
||||
pkgs.xcalib
|
||||
"/run/wrappers" # for su
|
||||
|
@ -4,7 +4,7 @@ let
|
||||
if elem x xs then
|
||||
remove x xs ++ [ x ]
|
||||
else
|
||||
names;
|
||||
xs;
|
||||
in
|
||||
|
||||
self: super:
|
||||
|
@ -7,7 +7,7 @@ module Main (main) where
|
||||
import System.Exit (exitFailure)
|
||||
|
||||
import Control.Exception
|
||||
import Control.Monad.Extra (ifM, whenJustM)
|
||||
import Control.Monad.Extra (whenJustM)
|
||||
import qualified Data.List
|
||||
import Graphics.X11.ExtraTypes.XF86
|
||||
import Text.Read (readEither)
|
||||
@ -68,7 +68,9 @@ mainNoArgs :: IO ()
|
||||
mainNoArgs = do
|
||||
workspaces0 <- getWorkspaces0
|
||||
handleShutdownEvent <- newShutdownEventHandler
|
||||
launch
|
||||
let
|
||||
config =
|
||||
id
|
||||
$ withUrgencyHook (SpawnUrgencyHook "echo emit Urgency ")
|
||||
$ def
|
||||
{ terminal = {-pkg:rxvt_unicode-}"urxvtc"
|
||||
@ -100,6 +102,8 @@ mainNoArgs = do
|
||||
, focusedBorderColor = "#f000b0"
|
||||
, handleEventHook = handleShutdownEvent
|
||||
}
|
||||
directories <- getDirectories
|
||||
launch config directories
|
||||
|
||||
|
||||
getWorkspaces0 :: IO [String]
|
||||
|
@ -1,7 +0,0 @@
|
||||
self: super:
|
||||
|
||||
self.lib.overrideDerivation super.dhcpcd (old: {
|
||||
configureFlags = old.configureFlags ++ [
|
||||
"--dbdir=/var/lib/dhcpcd"
|
||||
];
|
||||
})
|
@ -1,5 +1,5 @@
|
||||
{ pkgs }:
|
||||
|
||||
pkgs.writeDashBin "ff" ''
|
||||
exec ${pkgs.firefoxWrapper}/bin/firefox "$@"
|
||||
exec ${pkgs.firefox}/bin/firefox "$@"
|
||||
''
|
||||
|
@ -1,37 +1,38 @@
|
||||
{ lib, stdenv
|
||||
, runCommand
|
||||
, coreutils, dash, gnused, fzf, pass-otp, rxvt_unicode, utillinux, xdotool
|
||||
}:
|
||||
{ lib, pkgs, stdenv }:
|
||||
|
||||
runCommand "fzmenu" {
|
||||
pkgs.runCommand "fzmenu" {
|
||||
} /* sh */ ''
|
||||
mkdir $out
|
||||
|
||||
cp -r ${./bin} $out/bin
|
||||
|
||||
substituteInPlace $out/bin/otpmenu \
|
||||
--replace '#! /bin/sh' '#! ${dash}/bin/dash' \
|
||||
--replace '#! /bin/sh' '#! ${pkgs.dash}/bin/dash' \
|
||||
--replace '#PATH=' PATH=${lib.makeBinPath [
|
||||
coreutils
|
||||
dash
|
||||
fzf
|
||||
gnused
|
||||
pass-otp
|
||||
rxvt_unicode
|
||||
utillinux
|
||||
xdotool
|
||||
pkgs.coreutils
|
||||
pkgs.dash
|
||||
pkgs.fzf
|
||||
pkgs.gnused
|
||||
(pkgs.pass.withExtensions (ext: [
|
||||
ext.pass-otp
|
||||
]))
|
||||
pkgs.rxvt_unicode
|
||||
pkgs.utillinux
|
||||
pkgs.xdotool
|
||||
]}
|
||||
|
||||
substituteInPlace $out/bin/passmenu \
|
||||
--replace '#! /bin/sh' '#! ${dash}/bin/dash' \
|
||||
--replace '#! /bin/sh' '#! ${pkgs.dash}/bin/dash' \
|
||||
--replace '#PATH=' PATH=${lib.makeBinPath [
|
||||
coreutils
|
||||
dash
|
||||
fzf
|
||||
gnused
|
||||
pass-otp
|
||||
rxvt_unicode
|
||||
utillinux
|
||||
xdotool
|
||||
pkgs.coreutils
|
||||
pkgs.dash
|
||||
pkgs.fzf
|
||||
pkgs.gnused
|
||||
(pkgs.pass.withExtensions (ext: [
|
||||
ext.pass-otp
|
||||
]))
|
||||
pkgs.rxvt_unicode
|
||||
pkgs.utillinux
|
||||
pkgs.xdotool
|
||||
]}
|
||||
''
|
||||
|
Loading…
Reference in New Issue
Block a user