diff options
author | Kjetil Orbekk <kjetil.orbekk@gmail.com> | 2017-05-13 20:23:41 -0400 |
---|---|---|
committer | Kjetil Orbekk <kjetil.orbekk@gmail.com> | 2017-05-13 20:23:41 -0400 |
commit | dcab169d6faaafa378428b761633fc1d651dc721 (patch) | |
tree | ddf6538a7cea3d9250aef9df355f12306988910e /config | |
parent | a2c246eed30741b8e89734edfd2905765372f88d (diff) |
Add new container, shape.
Diffstat (limited to 'config')
-rw-r--r-- | config/container.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/config/container.nix b/config/container.nix new file mode 100644 index 0000000..f4508f5 --- /dev/null +++ b/config/container.nix @@ -0,0 +1,9 @@ +{ config, lib, pkgs, ... }: +{ + boot.isContainer = true; + networking.firewall.allowedTCPPorts = [ 22 ]; + services.openssh.enable = lib.mkDefault true; + system.activationScripts.installInitScript = '' + ln -fs $systemConfig/init /init + ''; +} |