-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
31 lines (27 loc) · 1013 Bytes
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{
description = "Container setup script for use of systemd-nspawn containers on non-nixos systems";
inputs.nixpkgs.url = github:NixOS/nixpkgs/nixos-21.05;
inputs.flake-utils.url = github:nwg/flake-utils;
#inputs.flake-utils.url = git+file:///home/griswold/project/nwg-flake-utils;
outputs = { self, nixpkgs, flake-utils } @ args:
with nixpkgs.lib;
with flake-utils.lib;
let
fu = flake-utils.lib;
version = "0.1";
overlay = (import ./container-scripts.nix { inherit nixpkgs version; }).overlay;
makePkgs = system: import nixpkgs { inherit system; overlays = [ overlay ]; };
forSystems = fu.forNixosSystems;
in
{
inherit overlay;
packages = forSystems (system:
let
pkgs = makePkgs system;
in
{
nspawnContainerScripts = pkgs.nspawnContainerScripts;
});
defaultPackage = forSystems (system: self.packages.${system}.nspawnContainerScripts);
};
}