Merge #284: Fix containers
2bfb4efbd8make-container: fix usage comment (Erik Arvstedt)3403795c86tests: add example scripts (Erik Arvstedt)ff94985b8btests: add test 'hardened' (Erik Arvstedt)c8e73c959efix 'hardened' profile for NixOS 20.09 (Erik Arvstedt)44b06aea5aextra-container: 0.5-pre -> 0.5 (Erik Arvstedt)a359cdfb66generate-secrets: use pwgen (Erik Arvstedt)a5a2fc7274make-container: fix renamed variable (Erik Arvstedt) Pull request description: ACKs for top commit: nixbitcoin: ACK2bfb4efbd8jonasnick: utACK2bfb4efbd8Tree-SHA512: 421b1fc5bf695d6815f060d129855ae0fecc06f7946ed8ac2bfe53895d7dc9529aad40099fc16844547791010232252f74b1ce32cbc9c6458e6d77f327450e94
This commit is contained in:
commit
7b32a78de2
10 changed files with 54 additions and 20 deletions
14
modules/presets/hardened.nix
Normal file
14
modules/presets/hardened.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
imports = [
|
||||
# Source: https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/profiles/hardened.nix
|
||||
<nixpkgs/nixos/modules/profiles/hardened.nix>
|
||||
];
|
||||
|
||||
## Reset some options set by the hardened profile
|
||||
|
||||
# Needed for sandboxed builds and services
|
||||
security.allowUserNamespaces = true;
|
||||
|
||||
# The "scudo" allocator is broken on NixOS 20.09
|
||||
environment.memoryAllocator.provider = "libc";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue