-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest.nix
More file actions
24 lines (23 loc) · 709 Bytes
/
test.nix
File metadata and controls
24 lines (23 loc) · 709 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ system ? builtins.currentSystem
, pkgs ? import <nixpkgs> { inherit system; }
}:
with pkgs;
with pkgs.lib;
let
container2 = (import <nixpkgs/nixos/lib/eval-config.nix> {
inherit system;
modules = [{
nixpkgs.system = system;
boot.isContainer = true;
networking.firewall.enable = false;
security.audit.enable = false;
services.postgresql.enable = true;
}];
}).config.system.build.toplevel;
in
{
# The last /nix/store path is expanded into / instead of copied to
# /nix/store. If we make it the system it'll be missing in /nix/store
# but other scripts will be referencing it.
container = symlinkJoin { name = "container"; paths = [ container2 ];};
}