RIP specialArgs.lib
This commit is contained in:
parent
234a7e8236
commit
d01679cc63
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
with lib;
|
with config.krebs.lib;
|
||||||
{
|
{
|
||||||
system.stateVersion = "15.09";
|
system.stateVersion = "15.09";
|
||||||
|
|
||||||
|
|
|
@ -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; [
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
# / (main-root)
|
# / (main-root)
|
||||||
# /home (main-home)
|
# /home (main-home)
|
||||||
|
|
||||||
with lib;
|
with config.krebs.lib;
|
||||||
{
|
{
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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 ;
|
||||||
|
|
|
@ -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 ;
|
||||||
|
|
|
@ -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 = [ ];
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
with lib;
|
with config.krebs.lib;
|
||||||
{
|
{
|
||||||
|
|
||||||
imports = [ ./tp-x2x0.nix ];
|
imports = [ ./tp-x2x0.nix ];
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
with lib;
|
with config.krebs.lib;
|
||||||
{
|
{
|
||||||
|
|
||||||
imports = [ ./tp-x2x0.nix ];
|
imports = [ ./tp-x2x0.nix ];
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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";
|
||||||
|
|
|
@ -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";
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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";
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
with lib;
|
with config.krebs.lib;
|
||||||
{
|
{
|
||||||
krebs.retiolum = {
|
krebs.retiolum = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue