tv: use body instead of out

This commit is contained in:
tv 2017-01-05 21:03:23 +01:00
parent 62372f917e
commit ef757f6e37
3 changed files with 9 additions and 20 deletions

View File

@ -2,9 +2,9 @@
with import <stockholm/lib>;
let
let {
out = {
body = {
krebs.git = {
enable = true;
cgit = {
@ -123,4 +123,4 @@ let
perm = fetch;
};
in out
}

View File

@ -1,8 +1,8 @@
{ config, lib, pkgs, ... }:
with import <stockholm/lib>;
let
out = {
let {
body = {
environment.systemPackages = [
vim
];
@ -411,5 +411,4 @@ let
catch /^Vim\%((\a\+)\)\=:E484/
endtry
'';
in
out
}

View File

@ -1,10 +1,10 @@
{ config, lib, pkgs, ... }:
with import <stockholm/lib>;
let
let {
cfg = config.tv.iptables;
out = {
body = {
options.tv.iptables = api;
config = lib.mkIf cfg.enable imp;
};
@ -146,14 +146,4 @@ let
)}
COMMIT
'';
in out
#let
# cfg = config.tv.iptables;
# arg' = arg // { inherit cfg; };
#in
#
#{
# options.tv.iptables = import ./options.nix arg';
# config = lib.mkIf cfg.enable (import ./config.nix arg');
#}
}