summaryrefslogtreecommitdiffstats
path: root/1systems
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
commit4bcdd1b6e59d1ceeeb8f634848dc7b9d047ad6a8 (patch)
tree883ccbdc9c465fb0419f4a26ee6ffa58d1f80d0e /1systems
parent745c1542f407c489184376aa63d425dd21706bb5 (diff)
m 1 vbob: allow to deploy self
Diffstat (limited to '1systems')
-rw-r--r--1systems/vbob.nix12
1 files changed, 10 insertions, 2 deletions
diff --git a/1systems/vbob.nix b/1systems/vbob.nix
index 4d8e8ced1..b121a730a 100644
--- a/1systems/vbob.nix
+++ b/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