summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormakefu <makefu@nixos.dev>2015-12-14 17:56:50 +0100
committermakefu <makefu@nixos.dev>2015-12-14 17:56:50 +0100
commit0449569b3d966f9d81107034def5adf5e6bf3cad (patch)
tree3ddea9acf2723bb76e2c396dc6a9a3bf9d65852c
parentb3cb94ef818f4aa966d53fc0be927435156eab5a (diff)
m 1 vbob: allow to deploy self
-rw-r--r--makefu/1systems/vbob.nix12
1 files changed, 10 insertions, 2 deletions
diff --git a/makefu/1systems/vbob.nix b/makefu/1systems/vbob.nix
index 4d8e8ced1..b121a730a 100644
--- a/makefu/1systems/vbob.nix
+++ b/makefu/1systems/vbob.nix
@@ -1,7 +1,7 @@
#
#
#
-{ config, pkgs, ... }:
+{ lib, config, pkgs, ... }:
{
krebs.build.host = config.krebs.hosts.vbob;
@@ -12,13 +12,21 @@
../2configs/main-laptop.nix #< base-gui
# environment
+
../2configs/zsh-user.nix
../2configs/virtualization.nix
];
+
+ # allow vbob to deploy self
+ users.extraUsers = {
+ root = {
+ openssh.authorizedKeys.keys = [ config.krebs.users.makefu-vbob.pubkey ];
+ };
+ };
nixpkgs.config.packageOverrides = pkgs: { tinc = pkgs.tinc_pre; };
environment.systemPackages = with pkgs;[
get
- ];
+ ];
networking.firewall.allowedTCPPorts = [
25