nixos-container

This commit is contained in:
Thomas Levine 2016-04-11 17:14:12 +00:00
parent 81a611dd9b
commit 9514948636

View File

@ -0,0 +1,19 @@
# A NixOS container to protect against accidental fork bombs
#
# Put this in /var/lib/containers/test/etc/nixos/configuration.nix
# See https://nixos.org/wiki/NixOS:Containers
environment.systemPackages = with pkgs; [
busybox
bash dash mksh zsh
];
users.extraUsers.user = {
name = "tlevine";
group = "users";
uid = 1000;
createHome = true;
home = "/home/tlevine";
extraGroups = [ "users" "wheel" ];
isNormalUser = true;
};