Merge remote-tracking branch 'cd/master'

This commit is contained in:
makefu 2016-02-15 17:07:48 +01:00
commit 92131ee806
39 changed files with 52 additions and 36 deletions

View file

@ -11,6 +11,7 @@ let
in {
imports =
[ # Include the results of the hardware scan.
../.
../2configs/fs/single-partition-ext4.nix
../2configs/tinc-basic-retiolum.nix
../2configs/smart-monitor.nix

View file

@ -1,11 +1,12 @@
{ config, lib, pkgs, ... }:
with lib;
with config.krebs.lib;
let
external-ip = head config.krebs.build.host.nets.internet.addrs4;
internal-ip = head config.krebs.build.host.nets.retiolum.addrs4;
in {
imports = [
../.
../2configs/tinc-basic-retiolum.nix
../2configs/headless.nix
../2configs/fs/simple-swap.nix

View file

@ -20,6 +20,7 @@ let
in {
imports =
[
../.
# TODO: unlock home partition via ssh
../2configs/fs/single-partition-ext4.nix
../2configs/tinc-basic-retiolum.nix

View file

@ -6,6 +6,7 @@
{
imports =
[
../.
../2configs/tinc-basic-retiolum.nix
../2configs/headless.nix
../../krebs/3modules/Reaktor.nix

View file

@ -6,6 +6,7 @@
{
imports =
[ # Include the results of the hardware scan.
../.
../2configs/main-laptop.nix #< base-gui + zsh
# Krebs

View file

@ -7,8 +7,9 @@
{
imports =
[ # Include the results of the hardware scan.
../.
<nixpkgs/nixos/modules/profiles/qemu-guest.nix>
../2configs/cgit-retiolum.nix
../2configs/git/cgit-retiolum.nix
];
krebs.build.host = config.krebs.hosts.repunit;

View file

@ -6,6 +6,7 @@
{
imports =
[ # Include the results of the hardware scan.
../.
../2configs/base-gui.nix
../2configs/tinc-basic-retiolum.nix
../2configs/fs/sda-crypto-root.nix

View file

@ -6,6 +6,7 @@
krebs.build.host = config.krebs.hosts.vbob;
imports =
[ # Include the results of the hardware scan.
../.
<nixpkgs/nixos/modules/virtualisation/virtualbox-image.nix>
../2configs/main-laptop.nix #< base-gui

View file

@ -2,6 +2,7 @@
{
imports =
[ # Include the results of the hardware scan.
../.
../2configs/main-laptop.nix
];
krebs = {

View file

@ -1,12 +1,13 @@
{ config, lib, pkgs, ... }:
with lib;
with config.krebs.lib;
let
external-ip = head config.krebs.build.host.nets.internet.addrs4;
internal-ip = head config.krebs.build.host.nets.retiolum.addrs4;
in {
imports = [
../.
# TODO: copy this config or move to krebs
../../tv/2configs/hw/CAC.nix
../../tv/2configs/fs/CAC-CentOS-7-64bit.nix

View file

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

View file

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

View file

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

View file

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

View file

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }:
with lib;
with config.krebs.lib;
{
system.stateVersion = "15.09";
@ -20,7 +20,7 @@ with lib;
build = {
user = config.krebs.users.makefu;
source = mapAttrs (_: mkDefault) {
upstream-nixpkgs = {
nixpkgs = {
url = https://github.com/nixos/nixpkgs;
rev = "77f8f35d57618c1ba456d968524f2fb2c3448295"; # unstable @ 2015-01-27, tested on wry
};
@ -29,8 +29,6 @@ with lib;
# Defaults for all stockholm users?
nixos-config = "symlink:stockholm/${config.krebs.build.user.name}/1systems/${config.krebs.build.host.name}.nix";
nixpkgs = symlink:stockholm/nixpkgs;
stockholm-user = "symlink:stockholm/${config.krebs.build.user.name}";
};
};
};

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }:
with lib;
with config.krebs.lib;
let
# returns dirname without / , used as disk name
@ -28,7 +28,7 @@ let
out = {
options.makefu.snapraid = api;
config = mkIf cfg.enable imp;
config = lib.mkIf cfg.enable imp;
};
api = {

View file

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }:
with lib;
with config.krebs.lib;
let
# TODO: currently it is only netzclub
@ -32,7 +32,7 @@ let
out = {
options.makefu.umts = api;
config = mkIf cfg.enable imp;
config = lib.mkIf cfg.enable imp;
};
api = {

8
default.nix Normal file
View file

@ -0,0 +1,8 @@
_:
{
imports = [
../krebs
./2configs
./3modules
];
}