Merge remote-tracking branch 'prism/master'

This commit is contained in:
tv 2016-12-22 20:45:46 +01:00
commit 47056b7fb4
13 changed files with 52 additions and 24 deletions

View File

@ -15,10 +15,6 @@ python3Packages.buildPythonPackage rec {
requests2 requests2
]; ];
postFixup = ''
wrapProgram "$out/bin/urlwatch" --prefix "PYTHONPATH" : "$PYTHONPATH"
'';
meta = { meta = {
description = "A tool for monitoring webpages for updates"; description = "A tool for monitoring webpages for updates";
homepage = https://thp.io/2008/urlwatch/; homepage = https://thp.io/2008/urlwatch/;

View File

@ -13,19 +13,18 @@ with import <stockholm/lib>;
../2configs/browsers.nix ../2configs/browsers.nix
../2configs/games.nix ../2configs/games.nix
../2configs/pass.nix ../2configs/pass.nix
../2configs/virtualbox.nix
../2configs/elster.nix ../2configs/elster.nix
../2configs/steam.nix ../2configs/steam.nix
../2configs/wine.nix ../2configs/wine.nix
../2configs/git.nix ../2configs/git.nix
../2configs/skype.nix ../2configs/skype.nix
../2configs/teamviewer.nix
../2configs/libvirt.nix ../2configs/libvirt.nix
../2configs/fetchWallpaper.nix ../2configs/fetchWallpaper.nix
#../2configs/c-base.nix #../2configs/c-base.nix
../2configs/mail.nix ../2configs/mail.nix
../2configs/krebs-pass.nix ../2configs/krebs-pass.nix
../2configs/repo-sync.nix ../2configs/repo-sync.nix
../2configs/ircd.nix
{ {
#risk of rain port #risk of rain port
krebs.iptables.tables.filter.INPUT.rules = [ krebs.iptables.tables.filter.INPUT.rules = [
@ -79,6 +78,9 @@ with import <stockholm/lib>;
{ {
services.redis.enable = true; services.redis.enable = true;
} }
{
virtualisation.libvirtd.enable = true;
}
]; ];
krebs.build.host = config.krebs.hosts.mors; krebs.build.host = config.krebs.hosts.mors;

View File

@ -7,11 +7,8 @@ in {
./xserver ./xserver
./mpv.nix ./mpv.nix
./power-action.nix ./power-action.nix
./pulse.nix
]; ];
hardware.pulseaudio = {
enable = true;
systemWide = true;
};
users.extraUsers.mainUser.extraGroups = [ "audio" "video" ]; users.extraUsers.mainUser.extraGroups = [ "audio" "video" ];
@ -53,6 +50,9 @@ in {
yt-next yt-next
youtube-tools youtube-tools
rxvt_unicode
termite
#window manager stuff #window manager stuff
#haskellPackages.xmobar #haskellPackages.xmobar
#haskellPackages.yeganesh #haskellPackages.yeganesh

View File

@ -31,6 +31,7 @@ with import <stockholm/lib>;
{ from = "nebenan@lassul.us"; to = lass.mail; } { from = "nebenan@lassul.us"; to = lass.mail; }
{ from = "feed@lassul.us"; to = lass.mail; } { from = "feed@lassul.us"; to = lass.mail; }
{ from = "art@lassul.us"; to = lass.mail; } { from = "art@lassul.us"; to = lass.mail; }
{ from = "irgendwas@lassul.us"; to = lass.mail; }
]; ];
system-aliases = [ system-aliases = [
{ from = "mailer-daemon"; to = "postmaster"; } { from = "mailer-daemon"; to = "postmaster"; }

View File

@ -2,12 +2,16 @@
let let
mainUser = config.users.extraUsers.mainUser; mainUser = config.users.extraUsers.mainUser;
vdoom = pkgs.writeDash "vdoom" ''
${pkgs.zandronum-bin}/bin/zandronum \
-fov 120 \
"$@"
'';
doom = pkgs.writeDash "doom" '' doom = pkgs.writeDash "doom" ''
DOOM_DIR=''${DOOM_DIR:-~/doom/} DOOM_DIR=''${DOOM_DIR:-~/doom/}
${pkgs.zandronum}/bin/zandronum \ ${vdoom} \
-file $DOOM_DIR/lib/brutalv20.pk3 \ -file $DOOM_DIR/lib/brutalv20.pk3 \
-file $DOOM_DIR/lib/RebotStarcraftMarines.pk3 \ -file $DOOM_DIR/lib/RebotStarcraftMarines.pk3 \
-fov 120 \
"$@" "$@"
''; '';
doom1 = pkgs.writeDashBin "doom1" '' doom1 = pkgs.writeDashBin "doom1" ''
@ -18,12 +22,22 @@ let
DOOM_DIR=''${DOOM_DIR:-~/doom/} DOOM_DIR=''${DOOM_DIR:-~/doom/}
${doom} -iwad $DOOM_DIR/wads/stock/doom2.wad "$@" ${doom} -iwad $DOOM_DIR/wads/stock/doom2.wad "$@"
''; '';
vdoom1 = pkgs.writeDashBin "vdoom1" ''
DOOM_DIR=''${DOOM_DIR:-~/doom/}
${vdoom} -iwad $DOOM_DIR/wads/stock/doom.wad "$@"
'';
vdoom2 = pkgs.writeDashBin "vdoom2" ''
DOOM_DIR=''${DOOM_DIR:-~/doom/}
${vdoom} -iwad $DOOM_DIR/wads/stock/doom2.wad "$@"
'';
in { in {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
dwarf_fortress dwarf_fortress
doom1 doom1
doom2 doom2
vdoom1
vdoom2
]; ];
users.extraUsers = { users.extraUsers = {

View File

@ -3,6 +3,6 @@
{ {
krebs.build.source.nixpkgs.git = { krebs.build.source.nixpkgs.git = {
url = https://github.com/nixos/nixpkgs; url = https://github.com/nixos/nixpkgs;
ref = "e360c7205f84be180d80b97f3980fb809a951486"; ref = "2a97e149e50e1c701a957c6bd060cc74b7e9a905";
}; };
} }

View File

@ -14,6 +14,7 @@ in {
tables = { tables = {
filter.INPUT.rules = [ filter.INPUT.rules = [
{ predicate = "-i retiolum -p tcp --dport 8118"; target = "ACCEPT"; } { predicate = "-i retiolum -p tcp --dport 8118"; target = "ACCEPT"; }
{ predicate = "-i dns0 -p tcp --dport 8118"; target = "ACCEPT"; }
]; ];
}; };
}; };

View File

@ -1,6 +0,0 @@
{ config, lib, pkgs, ... }:
with import <stockholm/lib>;
{
services.teamviewer.enable = true;
}

View File

@ -151,7 +151,7 @@ in {
description = "maintenance acc for domsen"; description = "maintenance acc for domsen";
home = "/home/domsen"; home = "/home/domsen";
useDefaultShell = true; useDefaultShell = true;
extraGroups = [ "nginx" ]; extraGroups = [ "nginx" "download" ];
createHome = true; createHome = true;
}; };

View File

@ -22,8 +22,7 @@ with import <stockholm/lib>;
user = config.krebs.users.makefu; user = config.krebs.users.makefu;
source = let source = let
inherit (config.krebs.build) host user; inherit (config.krebs.build) host user;
# ref = "b8ede35"; # stable @ 2016-10-19 ref = "f52eaf4"; # stable @ 2016-12-12
ref = "31c72ce"; # stable @ 2016-10-21 (dirtycow)
in { in {
nixpkgs = if config.makefu.full-populate || (getEnv "dummy_secrets" == "true") then nixpkgs = if config.makefu.full-populate || (getEnv "dummy_secrets" == "true") then
{ {

View File

@ -0,0 +1,20 @@
{ lib, pkgs, python3Packages, fetchurl, ... }:
with python3Packages; buildPythonPackage rec {
name = "acdcli-${version}";
version = "0.3.2";
propagatedBuildInputs = [
dateutil colorama fusepy appdirs requests2 requests_toolbelt six
];
src = fetchurl {
url = "mirror://pypi/a/acdcli/${name}.tar.gz";
sha256 = "1ak9xxpyb7n6iyalf2082jpimklakm0fgm7vsv7qcm8wy6vlq2cw";
};
doCheck = false; # ImportError: Failed to import test module: tests
postFixup = ''
mv $out/bin/.acd_cli.py-wrapped $out/bin/acd_cli.py
'';
meta = {
description = "communicate with amazon drive";
};
}

View File

@ -5,6 +5,7 @@ let
in in
{ {
nixpkgs.config.packageOverrides = rec { nixpkgs.config.packageOverrides = rec {
acdcli = callPackage ./acdcli {};
alsa-hdspconf = callPackage ./alsa-tools { alsaToolTarget="hdspconf";}; alsa-hdspconf = callPackage ./alsa-tools { alsaToolTarget="hdspconf";};
alsa-hdspmixer = callPackage ./alsa-tools { alsaToolTarget="hdspmixer";}; alsa-hdspmixer = callPackage ./alsa-tools { alsaToolTarget="hdspmixer";};
alsa-hdsploader = callPackage ./alsa-tools { alsaToolTarget="hdsploader";}; alsa-hdsploader = callPackage ./alsa-tools { alsaToolTarget="hdsploader";};

View File

@ -3,6 +3,6 @@
pkgs.fetchFromGitHub { pkgs.fetchFromGitHub {
owner = "makefu"; owner = "makefu";
repo = "tw-upload-plugin"; repo = "tw-upload-plugin";
rev = "a00aac"; rev = "621e5fbe";
sha256 = "0kazqs24kzjxqzr33kg1jbfx8xyvmrnrdxh6g27kgkgbl1d2qknh"; sha256 = "1wjy76s5mr6z772w6sr0dwqxaxn45c7ys4a5y2v55hxclr096dqg";
} }