forked from Fediversity/Fediversity
factor out to nixos.nix
This commit is contained in:
parent
2d0bf2d701
commit
9a2927e96b
1 changed files with 1 additions and 16 deletions
|
@ -90,23 +90,8 @@ in
|
|||
autoconf
|
||||
];
|
||||
};
|
||||
eval = import "${sources.nixpkgs}/nixos/lib/eval-config.nix" {
|
||||
system = builtins.currentSystem;
|
||||
specialArgs = {
|
||||
inherit sources;
|
||||
};
|
||||
modules = [ configuration ];
|
||||
};
|
||||
os = {
|
||||
inherit (eval) pkgs config options;
|
||||
system = eval.config.system.build.toplevel;
|
||||
inherit (eval.config.system.build) vm vmWithBootLoader;
|
||||
};
|
||||
in
|
||||
{
|
||||
drv_path = os.config.system.build.toplevel.drvPath;
|
||||
out_path = os.config.system.build.toplevel;
|
||||
}
|
||||
import ${pathToRoot}/deployment/nixos.nix { inherit configuration; }
|
||||
'
|
||||
)
|
||||
# instantiate the config in /nix/store
|
||||
|
|
Loading…
Add table
Reference in a new issue