summaryrefslogtreecommitdiffstats
path: root/lass
diff options
context:
space:
mode:
authorlassulus <lass@lassul.us>2017-01-16 17:25:21 +0100
committerlassulus <lass@lassul.us>2017-01-16 17:25:21 +0100
commit242e0fcb6c6ff300d3a7780ed9cd929448ac824c (patch)
tree6496b7b9a87c5f60de597f9e142e99ff0a35528b /lass
parentc54a22b9f39057ba88f8498396ba3e3d5cce2043 (diff)
l 1 prism: add (temporary) config for nin
Diffstat (limited to 'lass')
-rw-r--r--lass/1systems/prism.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/lass/1systems/prism.nix b/lass/1systems/prism.nix
index d07acebee..313a18a9c 100644
--- a/lass/1systems/prism.nix
+++ b/lass/1systems/prism.nix
@@ -226,6 +226,33 @@ in {
enable = true;
};
}
+ {
+ users.users.nin = {
+ uid = genid "nin";
+ inherit (config.krebs.users.nin) home;
+ group = "users";
+ createHome = true;
+ useDefaultShell = true;
+ openssh.authorizedKeys.keys = [
+ config.krebs.users.nin.pubkey
+ ];
+ extraGroups = [
+ "libvirtd"
+ ];
+ };
+ krebs.git.rules = [
+ {
+ user = [ config.krebs.users.nin ];
+ repo = [ config.krebs.git.repos.stockholm ];
+ perm = with git; push "refs/heads/nin" [ fast-forward non-fast-forward create delete merge ];
+ }
+ ];
+ krebs.repo-sync.repos.stockholm.nin = {
+ origin.url = "http://cgit.prism/stockholm";
+ origin.ref = "heads/nin";
+ mirror.url = "git@${config.networking.hostName}:stockholm";
+ };
+ }
];
krebs.build.host = config.krebs.hosts.prism;