init krebs.current

This commit is contained in:
tv 2015-10-25 14:15:21 +01:00
parent daa8fe2aa8
commit 8f15daf2ea
3 changed files with 32 additions and 1 deletions

View file

@ -31,9 +31,13 @@ let stockholm = {
kpath = lib.nspath "krebs";
upath = lib.nspath current-user-name;
base-module = {
base-module = { config, ... }: {
imports = map (f: f "3modules") [ kpath upath ];
krebs.current.enable = true;
krebs.current.host = config.krebs.hosts.${current-host-name};
krebs.current.user = config.krebs.users.${current-user-name};
nixpkgs.config.packageOverrides = pkgs:
let
kpkgs = import (kpath "5pkgs") { inherit lib pkgs; };

View file

@ -0,0 +1,26 @@
{ config, pkgs, lib, ... }:
with lib;
let
cfg = config.krebs.current;
out = {
options.krebs.current = api;
config = mkIf cfg.enable imp;
};
api = {
enable = mkEnableOption "krebs.current";
host = mkOption {
type = types.host;
};
user = mkOption {
type = types.user;
};
};
imp = {
};
in out

View file

@ -8,6 +8,7 @@ let
imports = [
./bepasty-server.nix
./build.nix
./current.nix
./exim-retiolum.nix
./exim-smarthost.nix
./github-hosts-sync.nix