From 3e4e5e5c098341667087eb1255912c40f3371863 Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 19 Jun 2017 01:00:36 +0200 Subject: tv: admit dummy_secrets --- tv/2configs/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tv/2configs') diff --git a/tv/2configs/default.nix b/tv/2configs/default.nix index b1d739ef3..b6c8e4393 100644 --- a/tv/2configs/default.nix +++ b/tv/2configs/default.nix @@ -9,7 +9,10 @@ with import ; user = config.krebs.users.tv; source = let inherit (config.krebs.build) host; in { nixos-config.symlink = "stockholm/tv/1systems/${host.name}.nix"; - secrets.file = "/home/tv/secrets/${host.name}"; + secrets.file = + if getEnv "dummy_secrets" == "true" + then toString + else "/home/tv/secrets/${host.name}"; secrets-common.file = "/home/tv/secrets/common"; stockholm.file = "/home/tv/stockholm"; nixpkgs.git = { -- cgit v1.2.3 From f6bb11676deb080096ba5ce335df82d6a0b3ac9c Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 19 Jun 2017 01:01:04 +0200 Subject: tv nixpkgs: 99dfb6d -> 412b0a1 --- tv/2configs/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tv/2configs') diff --git a/tv/2configs/default.nix b/tv/2configs/default.nix index b6c8e4393..13fc73aa7 100644 --- a/tv/2configs/default.nix +++ b/tv/2configs/default.nix @@ -17,7 +17,7 @@ with import ; stockholm.file = "/home/tv/stockholm"; nixpkgs.git = { url = https://github.com/NixOS/nixpkgs; - ref = "99dfb6dce37edcd1db7cb85c2db97089d9d5f442"; # nixos-17.03 + ref = "412b0a17aa2975e092c7ab95a38561c5f82908d4"; # nixos-17.03 }; } // optionalAttrs host.secure { secrets-master.file = "/home/tv/secrets/master"; -- cgit v1.2.3 From 094feb9b4ac1334f6d1390592a52c755083e57d0 Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 19 Jun 2017 01:01:29 +0200 Subject: tv: add whatsupnix --- tv/2configs/default.nix | 1 + 1 file changed, 1 insertion(+) (limited to 'tv/2configs') diff --git a/tv/2configs/default.nix b/tv/2configs/default.nix index 13fc73aa7..93b9c0122 100644 --- a/tv/2configs/default.nix +++ b/tv/2configs/default.nix @@ -44,6 +44,7 @@ with import ; gnumake hashPassword populate + whatsupnix ]; } { -- cgit v1.2.3 From f2e151ba2443eb0cfeb45f05e4699082769cdbc9 Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 19 Jun 2017 22:46:26 +0200 Subject: tv gitrepos: announce brain --- tv/2configs/gitrepos.nix | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'tv/2configs') diff --git a/tv/2configs/gitrepos.nix b/tv/2configs/gitrepos.nix index 13b12986c..7e059cc46 100644 --- a/tv/2configs/gitrepos.nix +++ b/tv/2configs/gitrepos.nix @@ -90,28 +90,31 @@ let { { brain = { collaborators = with config.krebs.users; [ lass makefu ]; + hooks.post-receive = irc-announce-retiolum; }; } // # TODO don't put secrets/repos.nix into the store import { inherit config lib pkgs; } ); + irc-announce-retiolum = pkgs.git-hooks.irc-announce { + # TODO make nick = config.krebs.build.host.name the default + nick = config.krebs.build.host.name; + channel = "#retiolum"; + server = "ni.r"; + verbose = true; + }; + make-public-repo = name: { cgit ? {}, ... }: { inherit cgit name; public = true; hooks = optionalAttrs (config.krebs.build.host.name == "ni") { - post-receive = pkgs.git-hooks.irc-announce { - # TODO make nick = config.krebs.build.host.name the default - nick = config.krebs.build.host.name; - channel = "#retiolum"; - server = "ni.r"; - verbose = true; - }; + post-receive = irc-announce-retiolum; }; }; - make-restricted-repo = name: { collaborators ? [], ... }: { - inherit collaborators name; + make-restricted-repo = name: { collaborators ? [], hooks ? {}, ... }: { + inherit collaborators hooks name; public = false; }; -- cgit v1.2.3 From 7cdd99f2b777f2335bfac1cfb686c07add288b05 Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 19 Jun 2017 23:07:51 +0200 Subject: gitrepos: don't announce brain's cgit link Because it's not accessible anyway. --- tv/2configs/gitrepos.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'tv/2configs') diff --git a/tv/2configs/gitrepos.nix b/tv/2configs/gitrepos.nix index 7e059cc46..b6480f356 100644 --- a/tv/2configs/gitrepos.nix +++ b/tv/2configs/gitrepos.nix @@ -90,26 +90,28 @@ let { { brain = { collaborators = with config.krebs.users; [ lass makefu ]; - hooks.post-receive = irc-announce-retiolum; + hooks.post-receive = irc-announce { + cgit_endpoint = null; + }; }; } // # TODO don't put secrets/repos.nix into the store import { inherit config lib pkgs; } ); - irc-announce-retiolum = pkgs.git-hooks.irc-announce { + irc-announce = args: pkgs.git-hooks.irc-announce (recursiveUpdate { + channel = "#retiolum"; # TODO make nick = config.krebs.build.host.name the default nick = config.krebs.build.host.name; - channel = "#retiolum"; server = "ni.r"; verbose = true; - }; + } args); make-public-repo = name: { cgit ? {}, ... }: { inherit cgit name; public = true; hooks = optionalAttrs (config.krebs.build.host.name == "ni") { - post-receive = irc-announce-retiolum; + post-receive = irc-announce {}; }; }; -- cgit v1.2.3 From 57c6b890f9088bb333eeab215ecfeca9d09ce3ef Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 20 Jun 2017 00:02:04 +0200 Subject: tv dummy_secrets: init --- tv/2configs/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tv/2configs') diff --git a/tv/2configs/default.nix b/tv/2configs/default.nix index 93b9c0122..4a1247ef5 100644 --- a/tv/2configs/default.nix +++ b/tv/2configs/default.nix @@ -11,7 +11,7 @@ with import ; nixos-config.symlink = "stockholm/tv/1systems/${host.name}.nix"; secrets.file = if getEnv "dummy_secrets" == "true" - then toString + then toString else "/home/tv/secrets/${host.name}"; secrets-common.file = "/home/tv/secrets/common"; stockholm.file = "/home/tv/stockholm"; -- cgit v1.2.3