nixos-container
This commit is contained in:
parent
81a611dd9b
commit
9514948636
19
packages/configuration.nix
Normal file
19
packages/configuration.nix
Normal 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;
|
||||
};
|
Loading…
Reference in New Issue
Block a user