RIP specialArgs.lib

This commit is contained in:
tv 2016-02-14 16:43:44 +01:00
parent 9f16d7ea71
commit 673853e092
119 changed files with 171 additions and 183 deletions

View File

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; with config.krebs.lib;
let let
ReaktorConfig = pkgs.writeText "config.py" '' ReaktorConfig = pkgs.writeText "config.py" ''
@ -16,7 +16,7 @@ let
out = { out = {
options.krebs.Reaktor = api; options.krebs.Reaktor = api;
config = mkIf cfg.enable imp; config = lib.mkIf cfg.enable imp;
}; };
api = { api = {

View File

@ -1,6 +1,6 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
with lib; with config.krebs.lib;
let let
acng-config = pkgs.writeTextFile { acng-config = pkgs.writeTextFile {
name = "acng-configuration"; name = "acng-configuration";
@ -151,5 +151,5 @@ let
in in
{ {
options.krebs.apt-cacher-ng = api; options.krebs.apt-cacher-ng = api;
config = mkIf cfg.enable imp; config = lib.mkIf cfg.enable imp;
} }

View File

@ -1,9 +1,9 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; with config.krebs.lib;
let let
out = { out = {
options.krebs.backup = api; options.krebs.backup = api;
config = mkIf cfg.enable imp; config = lib.mkIf cfg.enable imp;
}; };
cfg = config.krebs.backup; cfg = config.krebs.backup;

View File

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; with config.krebs.lib;
let let
gunicorn = pkgs.pythonPackages.gunicorn; gunicorn = pkgs.pythonPackages.gunicorn;
bepasty = pkgs.pythonPackages.bepasty-server; bepasty = pkgs.pythonPackages.bepasty-server;
@ -10,8 +10,8 @@ let
out = { out = {
options.krebs.bepasty = api; options.krebs.bepasty = api;
config = mkIf cfg.enable (mkMerge [ config = lib.mkIf cfg.enable (lib.mkMerge [
(mkIf cfg.serveNginx nginx-imp) (lib.mkIf cfg.serveNginx nginx-imp)
imp imp
]); ]);
}; };

View File

@ -1,6 +1,6 @@
{ config, lib, ... }: { config, lib, ... }:
with lib; with config.krebs.lib;
let let
out = { out = {

View File

@ -1,6 +1,6 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
with lib; with config.krebs.lib;
let let
buildbot = pkgs.buildbot; buildbot = pkgs.buildbot;
buildbot-master-config = pkgs.writeText "buildbot-master.cfg" '' buildbot-master-config = pkgs.writeText "buildbot-master.cfg" ''
@ -381,5 +381,5 @@ let
in in
{ {
options.krebs.buildbot.master = api; options.krebs.buildbot.master = api;
config = mkIf cfg.enable imp; config = lib.mkIf cfg.enable imp;
} }

View File

@ -1,6 +1,6 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
with lib; with config.krebs.lib;
let let
buildbot-slave-init = pkgs.writeText "buildbot-slave.tac" '' buildbot-slave-init = pkgs.writeText "buildbot-slave.tac" ''
import os import os
@ -182,5 +182,5 @@ let
in in
{ {
options.krebs.buildbot.slave = api; options.krebs.buildbot.slave = api;
config = mkIf cfg.enable imp; config = lib.mkIf cfg.enable imp;
} }

View File

@ -1,13 +1,13 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
with lib; with config.krebs.lib;
let let
cfg = config.krebs.current; cfg = config.krebs.current;
out = { out = {
options.krebs.current = api; options.krebs.current = api;
config = mkIf cfg.enable imp; config = lib.mkIf cfg.enable imp;
}; };
api = { api = {

View File

@ -1,6 +1,6 @@
{ config, lib, ... }: { config, lib, ... }:
with lib; with config.krebs.lib;
let let
cfg = config.krebs; cfg = config.krebs;
@ -33,7 +33,7 @@ let
./urlwatch.nix ./urlwatch.nix
]; ];
options.krebs = api; options.krebs = api;
config = mkIf cfg.enable imp; config = lib.mkIf cfg.enable imp;
}; };
api = { api = {
@ -84,13 +84,13 @@ let
}; };
}; };
imp = mkMerge [ imp = lib.mkMerge [
{ krebs = import ./lass { inherit lib; }; } { krebs = import ./lass { inherit config lib; }; }
{ krebs = import ./makefu { inherit lib; }; } { krebs = import ./makefu { inherit config lib; }; }
{ krebs = import ./miefda { inherit lib; }; } { krebs = import ./miefda { inherit config lib; }; }
{ krebs = import ./mv { inherit lib; }; } { krebs = import ./mv { inherit config lib; }; }
{ krebs = import ./shared { inherit lib; }; } { krebs = import ./shared { inherit config lib; }; }
{ krebs = import ./tv { inherit lib; }; } { krebs = import ./tv { inherit config lib; }; }
{ {
krebs.dns.providers = { krebs.dns.providers = {
de.krebsco = "zones"; de.krebsco = "zones";

View File

@ -1,12 +1,12 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
with lib; with config.krebs.lib;
let let
cfg = config.krebs.exim-retiolum; cfg = config.krebs.exim-retiolum;
out = { out = {
options.krebs.exim-retiolum = api; options.krebs.exim-retiolum = api;
config = mkIf cfg.enable imp; config = lib.mkIf cfg.enable imp;
}; };
api = { api = {

View File

@ -1,13 +1,12 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
with builtins; with config.krebs.lib;
with lib;
let let
cfg = config.krebs.exim-smarthost; cfg = config.krebs.exim-smarthost;
out = { out = {
options.krebs.exim-smarthost = api; options.krebs.exim-smarthost = api;
config = mkIf cfg.enable imp; config = lib.mkIf cfg.enable imp;
}; };
api = { api = {

View File

@ -1,13 +1,13 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; with config.krebs.lib;
let let
cfg = config.krebs.fetchWallpaper; cfg = config.krebs.fetchWallpaper;
out = { out = {
options.krebs.fetchWallpaper = api; options.krebs.fetchWallpaper = api;
config = mkIf cfg.enable imp; config = lib.mkIf cfg.enable imp;
}; };
api = { api = {

View File

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }: { config, lib, pkgs, ... }:
# TODO unify logging of shell scripts to user and journal # TODO unify logging of shell scripts to user and journal
# TODO move all scripts to ${etcDir}, so ControlMaster connections # TODO move all scripts to ${etcDir}, so ControlMaster connections
@ -6,13 +6,13 @@
# TODO when authorized_keys changes, then restart ssh # TODO when authorized_keys changes, then restart ssh
# (or kill already connected users somehow) # (or kill already connected users somehow)
with lib; with config.krebs.lib;
let let
cfg = config.krebs.git; cfg = config.krebs.git;
out = { out = {
options.krebs.git = api; options.krebs.git = api;
config = mkIf cfg.enable (mkMerge [ config = with lib; mkIf cfg.enable (mkMerge [
(mkIf cfg.cgit cgit-imp) (mkIf cfg.cgit cgit-imp)
git-imp git-imp
]); ]);
@ -86,7 +86,7 @@ let
singleton { singleton {
user = [ config.krebs.users.tv ]; user = [ config.krebs.users.tv ];
repo = [ testing ]; # see literal example of repos repo = [ testing ]; # see literal example of repos
perm = push "refs/*" (with lib.git; [ perm = push "refs/*" (with config.krebs.lib.git; [
non-fast-forward create delete merge non-fast-forward create delete merge
]); ]);
} }

View File

@ -1,12 +1,12 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; with config.krebs.lib;
let let
cfg = config.krebs.github-hosts-sync; cfg = config.krebs.github-hosts-sync;
out = { out = {
options.krebs.github-hosts-sync = api; options.krebs.github-hosts-sync = api;
config = mkIf cfg.enable imp; config = lib.mkIf cfg.enable imp;
}; };
api = { api = {

View File

@ -1,13 +1,13 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; with config.krebs.lib;
let let
cfg = config.krebs.go; cfg = config.krebs.go;
out = { out = {
options.krebs.go = api; options.krebs.go = api;
config = mkIf cfg.enable imp; config = lib.mkIf cfg.enable imp;
}; };
api = { api = {

View File

@ -1,6 +1,6 @@
{ lib, ... }: { config, lib, ... }:
with lib; with config.krebs.lib;
{ {
hosts = { hosts = {

View File

@ -1,6 +1,6 @@
{ lib, ... }: { config, lib, ... }:
with lib; with config.krebs.lib;
{ {
hosts = { hosts = {

View File

@ -1,6 +1,6 @@
{ lib, ... }: { config, lib, ... }:
with lib; with config.krebs.lib;
{ {
hosts = { hosts = {

View File

@ -1,6 +1,6 @@
{ lib, ... }: { config, ... }:
with lib; with config.krebs.lib;
{ {
hosts = { hosts = {

View File

@ -1,13 +1,12 @@
{ config, pkgs, lib, ... }: { config, lib, pkgs, ... }:
with builtins; with config.krebs.lib;
with lib;
let let
cfg = config.krebs.nginx; cfg = config.krebs.nginx;
out = { out = {
options.krebs.nginx = api; options.krebs.nginx = api;
config = mkIf cfg.enable imp; config = lib.mkIf cfg.enable imp;
}; };
api = { api = {

View File

@ -1,11 +1,11 @@
{ config, pkgs, lib, ... }: { config, lib, pkgs, ... }:
with lib; with config.krebs.lib;
let let
cfg = config.krebs.nixpkgs; cfg = config.krebs.nixpkgs;
out = { out = {
options.krebs.nixpkgs = api; options.krebs.nixpkgs = api;
config = mkIf cfg.enable imp; config = lib.mkIf cfg.enable imp;
}; };
api = { api = {
@ -37,7 +37,7 @@ let
}; };
}; };
imp = mkIf (cfg.allowUnfreePredicate != null) { imp = lib.mkIf (cfg.allowUnfreePredicate != null) {
nixpkgs.config.allowUnfreePredicate = cfg.allowUnfreePredicate; nixpkgs.config.allowUnfreePredicate = cfg.allowUnfreePredicate;
}; };
in out in out

View File

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; with config.krebs.lib;
let let
cfg = config.krebs.per-user; cfg = config.krebs.per-user;

View File

@ -1,12 +1,12 @@
arg@{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; with config.krebs.lib;
let let
cfg = config.krebs.realwallpaper; cfg = config.krebs.realwallpaper;
out = { out = {
options.krebs.realwallpaper = api; options.krebs.realwallpaper = api;
config = mkIf cfg.enable imp; config = lib.mkIf cfg.enable imp;
}; };
api = { api = {

View File

@ -1,12 +1,12 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; with config.krebs.lib;
let let
cfg = config.krebs.retiolum-bootstrap; cfg = config.krebs.retiolum-bootstrap;
out = { out = {
options.krebs.retiolum-bootstrap = api; options.krebs.retiolum-bootstrap = api;
config = mkIf cfg.enable imp ; config = lib.mkIf cfg.enable imp;
}; };
api = { api = {

View File

@ -1,11 +1,11 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
with lib; with config.krebs.lib;
let let
cfg = config.krebs.retiolum; cfg = config.krebs.retiolum;
out = { out = {
options.krebs.retiolum = api; options.krebs.retiolum = api;
config = mkIf cfg.enable imp; config = lib.mkIf cfg.enable imp;
}; };
api = { api = {

View File

@ -1,5 +1,5 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
with lib; with config.krebs.lib;
let let
cfg = config.krebs.setuid; cfg = config.krebs.setuid;

View File

@ -1,9 +1,8 @@
{ lib, ... }: { config, ... }:
with lib;
with config.krebs.lib;
let let
testHosts = lib.genAttrs [ testHosts = genAttrs [
"test-arch" "test-arch"
"test-centos6" "test-centos6"
"test-centos7" "test-centos7"

View File

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; with config.krebs.lib;
let let
cfg = config.krebs.tinc_graphs; cfg = config.krebs.tinc_graphs;
internal_dir = "${cfg.workingDir}/internal"; internal_dir = "${cfg.workingDir}/internal";
@ -8,7 +8,7 @@ let
out = { out = {
options.krebs.tinc_graphs = api; options.krebs.tinc_graphs = api;
config = mkIf cfg.enable imp ; config = lib.mkIf cfg.enable imp ;
}; };
api = { api = {

View File

@ -1,6 +1,6 @@
{ lib, ... }: { config, ... }:
with lib; with config.krebs.lib;
{ {
dns.providers = { dns.providers = {

View File

@ -5,14 +5,14 @@
# cache = url: "${cfg.dataDir}/.urlwatch/cache/${hashString "sha1" url}" # cache = url: "${cfg.dataDir}/.urlwatch/cache/${hashString "sha1" url}"
# TODO hooks.py # TODO hooks.py
with lib; with config.krebs.lib;
let let
cfg = config.krebs.urlwatch; cfg = config.krebs.urlwatch;
# TODO assert sendmail's existence # TODO assert sendmail's existence
out = { out = {
options.krebs.urlwatch = api; options.krebs.urlwatch = api;
config = mkIf cfg.enable imp; config = lib.mkIf cfg.enable imp;
}; };
api = { api = {

View File

@ -1,5 +1,5 @@
{ lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; with config.krebs.lib;
rec { rec {
execve = name: { filename, argv ? null, envp ? {}, destination ? "" }: let execve = name: { filename, argv ? null, envp ? {}, destination ? "" }: let
in writeC name { inherit destination; } '' in writeC name { inherit destination; } ''

View File

@ -1,5 +1,5 @@
{ lib, pkgs, ... }@args: { config, lib, pkgs, ... }@args:
with lib; with config.krebs.lib;
{ {
nixpkgs.config.packageOverrides = pkgs: { nixpkgs.config.packageOverrides = pkgs: {
haskellPackages = pkgs.haskellPackages.override { haskellPackages = pkgs.haskellPackages.override {

View File

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; with config.krebs.lib;
{ {
imports = [ imports = [
../2configs/vim.nix ../2configs/vim.nix

View File

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; with config.krebs.lib;
let let
rpc-password = import <secrets/transmission-pw.nix>; rpc-password = import <secrets/transmission-pw.nix>;

View File

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; with config.krebs.lib;
let let
createStaticPage = domain: createStaticPage = domain:

View File

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; with config.krebs.lib;
let let

View File

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; with config.krebs.lib;
{ {
environment.systemPackages = [ environment.systemPackages = [
pkgs.go pkgs.go

View File

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; with config.krebs.lib;
{ {
services.teamviewer.enable = true; services.teamviewer.enable = true;
} }

View File

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; with config.krebs.lib;
pkgs.writeText "Xresources" '' pkgs.writeText "Xresources" ''
URxvt*scrollBar: false URxvt*scrollBar: false

View File

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }@args: { config, lib, pkgs, ... }@args:
with lib; with config.krebs.lib;
let let
# TODO krebs.build.user # TODO krebs.build.user

View File

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; with config.krebs.lib;
let let
cfg = config.services.xserver; cfg = config.services.xserver;

View File

@ -1,7 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with builtins; with config.krebs.lib;
with lib;
let let
cfg = config.lass.dnsmasq; cfg = config.lass.dnsmasq;

View File

@ -1,7 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with builtins; with config.krebs.lib;
with lib;
let let
cfg = config.lass.newsbot-js; cfg = config.lass.newsbot-js;

View File

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; with config.krebs.lib;
let let
cfg = config.lass.owncloud; cfg = config.lass.owncloud;

View File

@ -1,7 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with builtins; with config.krebs.lib;
with lib;
let let
cfg = config.lass.per-user; cfg = config.lass.per-user;

View File

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; with config.krebs.lib;
let let
cfg = config.lass.staticPage; cfg = config.lass.staticPage;

View File

@ -3,8 +3,7 @@
let let
in in
with builtins; with config.krebs.lib;
with lib;
{ {
options = { options = {

View File

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; with config.krebs.lib;
let let
cfg = config.lass.wordpress; cfg = config.lass.wordpress;

View File

@ -6,8 +6,7 @@
# #
# #
with builtins; with config.krebs.lib;
with lib;
let let

View File

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; with config.krebs.lib;
let let
external-ip = head config.krebs.build.host.nets.internet.addrs4; external-ip = head config.krebs.build.host.nets.internet.addrs4;
internal-ip = head config.krebs.build.host.nets.retiolum.addrs4; internal-ip = head config.krebs.build.host.nets.retiolum.addrs4;

View File

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; with config.krebs.lib;
let let
external-ip = head config.krebs.build.host.nets.internet.addrs4; external-ip = head config.krebs.build.host.nets.internet.addrs4;

View File

@ -1,5 +1,5 @@
{ config, lib, ... }: { config, lib, ... }:
with lib; with config.krebs.lib;
let let
startAt = "0,6,12,18:00"; startAt = "0,6,12,18:00";
defaultBackupServer = config.krebs.hosts.omo; defaultBackupServer = config.krebs.hosts.omo;

View File

@ -21,7 +21,7 @@
# URxvt.visualBell: false # URxvt.visualBell: false
# URxvt.font : xft:Terminus # URxvt.font : xft:Terminus
with lib; with config.krebs.lib;
let let
mainUser = config.krebs.build.user.name; mainUser = config.krebs.build.user.name;
awesomecfg = pkgs.awesomecfg.full; awesomecfg = pkgs.awesomecfg.full;

View File

@ -10,7 +10,7 @@
# wildcard.krebsco.de.key # wildcard.krebsco.de.key
# bepasty-secret.nix <- contains single string # bepasty-secret.nix <- contains single string
with lib; with config.krebs.lib;
let let
sec = toString <secrets>; sec = toString <secrets>;
# secKey is nothing worth protecting on a local machine # secKey is nothing worth protecting on a local machine

View File

@ -2,7 +2,7 @@
# graphite-web on port 8080 # graphite-web on port 8080
# carbon cache on port 2003 (tcp/udp) # carbon cache on port 2003 (tcp/udp)
with lib; with config.krebs.lib;
let let
connect-time-cfg = with pkgs; writeText "collectd-connect-time.cfg" '' connect-time-cfg = with pkgs; writeText "collectd-connect-time.cfg" ''
LoadPlugin python LoadPlugin python

View File

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; with config.krebs.lib;
{ {
system.stateVersion = "15.09"; system.stateVersion = "15.09";

View File

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; with config.krebs.lib;
{ {
krebs.exim-retiolum.enable = true; krebs.exim-retiolum.enable = true;
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [

View File

@ -1,7 +1,7 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
# vda1 ext4 (label nixos) -> only root partition # vda1 ext4 (label nixos) -> only root partition
with lib; with config.krebs.lib;
{ {
boot.loader.grub.enable = true; boot.loader.grub.enable = true;
boot.loader.grub.version = 2; boot.loader.grub.version = 2;

View File

@ -8,7 +8,7 @@
# / (main-root) # / (main-root)
# /home (main-home) # /home (main-home)
with lib; with config.krebs.lib;
{ {
imports = [ imports = [

View File

@ -3,7 +3,7 @@
# sda: bootloader grub2 # sda: bootloader grub2
# sda1: boot ext4 (label nixboot) # sda1: boot ext4 (label nixboot)
# sda2: cryptoluks -> ext4 # sda2: cryptoluks -> ext4
with lib; with config.krebs.lib;
{ {
boot = { boot = {
loader.grub.enable = true; loader.grub.enable = true;

View File

@ -1,7 +1,7 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
# vda1 ext4 (label nixos) -> only root partition # vda1 ext4 (label nixos) -> only root partition
with lib; with config.krebs.lib;
{ {
imports = [ imports = [
./single-partition-ext4.nix ./single-partition-ext4.nix

View File

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
# TODO: remove tv lib :) # TODO: remove tv lib :)
with lib; with config.krebs.lib;
let let
repos = priv-repos // krebs-repos ; repos = priv-repos // krebs-repos ;

View File

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
# TODO: remove tv lib :) # TODO: remove tv lib :)
with lib; with config.krebs.lib;
let let
repos = priv-repos // krebs-repos // connector-repos ; repos = priv-repos // krebs-repos // connector-repos ;

View File

@ -2,7 +2,7 @@
# graphite-web on port 8080 # graphite-web on port 8080
# carbon cache on port 2003 (tcp/udp) # carbon cache on port 2003 (tcp/udp)
with lib; with config.krebs.lib;
{ {
imports = [ ]; imports = [ ];

View File

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; with config.krebs.lib;
{ {
imports = [ ./tp-x2x0.nix ]; imports = [ ./tp-x2x0.nix ];

View File

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; with config.krebs.lib;
{ {
imports = [ ./tp-x2x0.nix ]; imports = [ ./tp-x2x0.nix ];

View File

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; with config.krebs.lib;
{ {
# TODO: put this somewhere else # TODO: put this somewhere else
networking.wireless.enable = true; networking.wireless.enable = true;

View File

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; with config.krebs.lib;
{ {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
msmtp msmtp

View File

@ -5,7 +5,7 @@
# not fit into base-gui # not fit into base-gui
# TODO split generic desktop stuff and laptop-specifics like lidswitching # TODO split generic desktop stuff and laptop-specifics like lidswitching
with lib; with config.krebs.lib;
{ {
imports = [ imports = [
./base-gui.nix ./base-gui.nix

View File

@ -1,6 +1,6 @@
{config, lib, ...}: {config, lib, ...}:
with lib; with config.krebs.lib;
let let
sec = toString <secrets>; sec = toString <secrets>;
ssl_cert = "${sec}/wildcard.krebsco.de.crt"; ssl_cert = "${sec}/wildcard.krebsco.de.crt";

View File

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; with config.krebs.lib;
let let
sec = toString <secrets>; sec = toString <secrets>;
ssl_cert = "${sec}/wildcard.krebsco.de.crt"; ssl_cert = "${sec}/wildcard.krebsco.de.crt";

View File

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; with config.krebs.lib;
let let
hostname = config.krebs.build.host.name; hostname = config.krebs.build.host.name;
user = config.services.nginx.user; user = config.services.nginx.user;

View File

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; with config.krebs.lib;
let let
sec = toString <secrets>; sec = toString <secrets>;
ssl_cert = "${sec}/wildcard.krebsco.de.crt"; ssl_cert = "${sec}/wildcard.krebsco.de.crt";

View File

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; with config.krebs.lib;
let let
hostname = config.krebs.build.host.name; hostname = config.krebs.build.host.name;
external-ip = head config.krebs.build.host.nets.internet.addrs4; external-ip = head config.krebs.build.host.nets.internet.addrs4;

View File

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; with config.krebs.lib;
let let
hostname = config.krebs.build.host.name; hostname = config.krebs.build.host.name;
# TODO local-ip from the nets config # TODO local-ip from the nets config

View File

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; with config.krebs.lib;
{ {
krebs.retiolum = { krebs.retiolum = {
enable = true; enable = true;

View File

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
## ##
with lib; with config.krebs.lib;
let let
mainUser = config.krebs.build.user.name; mainUser = config.krebs.build.user.name;
in in

View File

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; with config.krebs.lib;
let let
# returns dirname without / , used as disk name # returns dirname without / , used as disk name

View File

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; with config.krebs.lib;
let let
# TODO: currently it is only netzclub # TODO: currently it is only netzclub

View File

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; with config.krebs.lib;
let let

View File

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; with config.krebs.lib;
{ {
#networking.wicd.enable = true; #networking.wicd.enable = true;

View File

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; with config.krebs.lib;
{ {
krebs.retiolum = { krebs.retiolum = {
enable = true; enable = true;

View File

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; with config.krebs.lib;
{ {
hardware.enableAllFirmware = true; hardware.enableAllFirmware = true;
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;

View File

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; with config.krebs.lib;
{ {
services.xserver = { services.xserver = {

View File

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; with config.krebs.lib;
{ {
krebs.build.host = config.krebs.hosts.stro; krebs.build.host = config.krebs.hosts.stro;

View File

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; with config.krebs.lib;
let let
HOME = getEnv "HOME"; HOME = getEnv "HOME";
in in

View File

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; with config.krebs.lib;
let let

View File

@ -1,6 +1,6 @@
{ lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; with config.krebs.lib;
let let
out = { out = {
environment.systemPackages = [ environment.systemPackages = [

View File

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; with config.krebs.lib;
pkgs.writeText "Xresources" '' pkgs.writeText "Xresources" ''
!URxvt*background: #050505 !URxvt*background: #050505

View File

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }@args: { config, lib, pkgs, ... }@args:
with lib; with config.krebs.lib;
let let
# TODO krebs.build.user # TODO krebs.build.user

View File

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; with config.krebs.lib;
let let
cfg = config.services.xserver; cfg = config.services.xserver;

View File

@ -1,13 +1,12 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with builtins; with config.krebs.lib;
with lib;
let let
cfg = config.tv.iptables; cfg = config.tv.iptables;
out = { out = {
options.tv.iptables = api; options.tv.iptables = api;
config = mkIf cfg.enable imp; config = lib.mkIf cfg.enable imp;
}; };
api = { api = {

View File

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; with config.krebs.lib;
{ {
krebs.enable = true; krebs.enable = true;
krebs.retiolum = { krebs.retiolum = {

View File

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; with config.krebs.lib;
let let
rules = with git; singleton { rules = with git; singleton {
user = [ git-sync ]; user = [ git-sync ];

View File

@ -1,7 +1,7 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
# TODO: krebs.collectd.plugins # TODO: krebs.collectd.plugins
with lib; with config.krebs.lib;
let let
connect-time-cfg = with pkgs; writeText "collectd-connect-time.conf" '' connect-time-cfg = with pkgs; writeText "collectd-connect-time.conf" ''
LoadPlugin python LoadPlugin python

View File

@ -5,7 +5,7 @@
# TODO: krebs.graphite.minimal.enable # TODO: krebs.graphite.minimal.enable
# TODO: configure firewall # TODO: configure firewall
with lib; with config.krebs.lib;
{ {
imports = [ ]; imports = [ ];

View File

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; with config.krebs.lib;
{ {
krebs.build.host = config.krebs.hosts.cd; krebs.build.host = config.krebs.hosts.cd;

View File

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; with config.krebs.lib;
let let
# TODO merge with lass # TODO merge with lass

View File

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; with config.krebs.lib;
{ {
krebs.build.host = config.krebs.hosts.nomic; krebs.build.host = config.krebs.hosts.nomic;

View File

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; with config.krebs.lib;
let let
# TODO merge with lass # TODO merge with lass

Some files were not shown because too many files have changed in this diff Show More