Skip to content

Commit

Permalink
container on linux only
Browse files Browse the repository at this point in the history
  • Loading branch information
srid authored Nov 8, 2024
1 parent c9e2b4f commit ea995cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nix/modules/flake-parts/container.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ root, ... }: {
perSystem = { pkgs, config, ... }:
perSystem = { pkgs, config, lib, ... }:
let
emanote = config.packages.emanote;
container-name = "ghcr.io/srid/emanote";
Expand All @@ -13,7 +13,7 @@
"org.opencontainers.image.source" = "https://github.com/srid/emanote";
};
};
in {
in lib.optionalAttrs pkgs.stdenv.isLinux {
# Load the container locally with: `nix build .#container && ./result | podman load`
packages.container = container;

Expand Down

0 comments on commit ea995cb

Please sign in to comment.