init krebs.current
This commit is contained in:
parent
daa8fe2aa8
commit
8f15daf2ea
|
@ -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; };
|
||||
|
|
26
krebs/3modules/current.nix
Normal file
26
krebs/3modules/current.nix
Normal 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
|
|
@ -8,6 +8,7 @@ let
|
|||
imports = [
|
||||
./bepasty-server.nix
|
||||
./build.nix
|
||||
./current.nix
|
||||
./exim-retiolum.nix
|
||||
./exim-smarthost.nix
|
||||
./github-hosts-sync.nix
|
||||
|
|
Loading…
Reference in a new issue