Use niv to include other git repos

This commit is contained in:
Daniel Frank 2022-01-02 19:51:59 +01:00
commit 5fd35ba767
Signed by: tokudan
GPG key ID: 063CCCAD04182D32
3 changed files with 183 additions and 8 deletions

View file

@ -1,12 +1,5 @@
{ config, pkgs, ... }:
let mymailserver = (import <nixpkgs> {}).pkgs.fetchgit {
url = "https://codeberg.org/tokudan/nixos-mailserver.git";
rev = "4ace785a05f233392b6db6c82dcdd25599cd88dc";
sha256 = "1cwj2k2w7316jby7l7fjcclbwjfs7p7ymyslw1cfh7y8vf2a32ii";
};
in
{
# Import some configuration as they are too long to be easily readable here
imports = [
@ -15,7 +8,7 @@ in
#./postfixadmin.nix
#./roundcube.nix
#./rspamd.nix
"${mymailserver}/default.nix"
(import (import ./nix/sources.nix).nixos-mailserver)
];
networking.domain = "hamburg.freifunk.net";
services.mymailserver = {