Merge remote-tracking branch 'prism/lassulus'

This commit is contained in:
makefu 2016-09-07 14:58:31 +02:00
commit 541e21dcba
No known key found for this signature in database
GPG key ID: 36F7711F3FC0F225
10 changed files with 51 additions and 11 deletions

View file

@ -223,7 +223,7 @@ let
touch ${systemd-logfile}
cp -f ${configFile} ${cfg.workDir}/.rtorrent.rc
'';
ExecStart = "${pkgs.tmux.bin}/bin/tmux new-session -s rt -n rtorrent -d 'PATH=/bin:/usr/bin:${makeBinPath rutorrent-deps} ${cfg.package}/bin/rtorrent'";
ExecStart = "${pkgs.tmux}/bin/tmux new-session -s rt -n rtorrent -d 'PATH=/bin:/usr/bin:${makeBinPath rutorrent-deps} ${cfg.package}/bin/rtorrent'";
## you can simply sudo -u rtorrent tmux a if privateTmp is set to false
## otherwise the tmux session is stored in some private folder in /tmp

View file

@ -1,5 +1,6 @@
{ config, pkgs, ... }:
with config.krebs.lib;
{
imports = [
../.
@ -66,6 +67,16 @@
'';
};
}
{
krebs.nginx = {
enable = true;
servers.default.locations = [
(nameValuePair "~ ^/~(.+?)(/.*)?\$" ''
alias /home/$1/public_html$2;
'')
];
};
}
];
krebs.build.host = config.krebs.hosts.mors;
@ -170,6 +181,8 @@
'';
environment.systemPackages = with pkgs; [
exfat
acronym
cac-api
sshpass
@ -179,6 +192,8 @@
urban
mk_sql_pair
remmina
logf
];
#TODO: fix this shit

View file

@ -243,6 +243,23 @@ in {
];
};
}
{
krebs.nginx = {
enable = true;
servers.public = {
listen = [ "8088" ];
server-names = [ "default" ];
locations = [
(nameValuePair "~ ^/~(.+?)(/.*)?\$" ''
alias /home/$1/public_html$2;
'')
];
};
};
krebs.iptables.tables.filter.INPUT.rules = [
{ predicate = "-p tcp --dport 8088"; target = "ACCEPT"; }
];
}
];
krebs.build.host = config.krebs.hosts.prism;

View file

@ -4,11 +4,8 @@ let
mainUser = config.users.extraUsers.mainUser;
in {
imports = [
./default.nix
#./urxvt.nix
./xserver
./mpv.nix
#./pulse.nix
./power-action.nix
];
hardware.pulseaudio = {

View file

@ -2,7 +2,7 @@
{
krebs.build.source.nixpkgs.git = {
url = https://github.com/nixos/nixpkgs;
ref = "c5cbda24147de441906871238138eb7fc90282db";
url = https://github.com/lassulus/nixpkgs;
ref = "3fb009d94e70f5d1151f4ec239a90d2de1979a74";
};
}

View file

@ -6,9 +6,6 @@
extraConfig = ''
#use polipo
forward / localhost:8123
#route .onion through tor
forward-socks4a .onion localhost:9050
'';
};
services.polipo.enable = true;

View file

@ -0,0 +1 @@
"xxx"

View file

@ -48,6 +48,9 @@ in {
"ubikmedia.eu"
"facts.cloud"
"youthtube.xyz"
"illucloud.eu"
"illucloud.de"
"illucloud.com"
"www.ubikmedia.de"
"www.aldona.ubikmedia.de"
"www.apanowicz.de"
@ -57,6 +60,9 @@ in {
"www.ubikmedia.eu"
"www.facts.cloud"
"www.youthtube.xyz"
"www.illucloud.eu"
"www.illucloud.de"
"www.illucloud.com"
])
(serveWordpress [
"ubikmedia.de"
@ -67,6 +73,9 @@ in {
"ubikmedia.eu"
"facts.cloud"
"youthtube.xyz"
"illucloud.eu"
"illucloud.de"
"illucloud.com"
"www.apanowicz.de"
"www.nirwanabluete.de"
"www.aldonasiech.com"
@ -74,6 +83,9 @@ in {
"www.ubikmedia.eu"
"www.facts.cloud"
"www.youthtube.xyz"
"www.illucloud.eu"
"www.illucloud.de"
"www.illucloud.com"
"*.ubikmedia.de"
])
];

View file

@ -114,8 +114,8 @@ myKeyMap =
, ("<XF86AudioMute>", spawn "${pkgs.pulseaudioLight.out}/bin/pactl -- set-sink-mute 0 toggle")
, ("<XF86AudioMicMute>", spawn "${pkgs.pulseaudioLight.out}/bin/pactl -- set-source-mute 1 toggle")
, ("<XF86Launch1>", gridselectWorkspace gridConfig W.view)
, ("<XF86MonBrightnessUp>", spawn "xbacklight -steps 1 -time 1 -inc 3")
, ("<XF86MonBrightnessDown>", spawn "xbacklight -steps 1 -time 1 -dec 3")
, ("<XF86MonBrightnessUp>", spawn "xbacklight -steps 1 -time 1 -inc 10")
, ("<XF86MonBrightnessDown>", spawn "xbacklight -steps 1 -time 1 -dec 10")
, ("M4-a", focusUrgent)
, ("M4-S-r", renameWorkspace def)

View file

@ -2,6 +2,7 @@ _:
{
imports = [
../krebs
./2configs
./3modules
./5pkgs
];