mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-01 06:31:04 +01:00
parent
6695b1d477
commit
82ee14ff60
124 changed files with 1848 additions and 1891 deletions
|
|
@ -4,10 +4,9 @@
|
|||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
inherit (lib) mkOption types;
|
||||
|
||||
cfg = config.services.podman;
|
||||
|
||||
podman-lib = import ./podman-lib.nix { inherit pkgs lib config; };
|
||||
|
|
@ -44,7 +43,7 @@ let
|
|||
PATH = (
|
||||
builtins.concatStringsSep ":" [
|
||||
"${podman-lib.newuidmapPaths}"
|
||||
"${makeBinPath [
|
||||
"${lib.makeBinPath [
|
||||
pkgs.su
|
||||
pkgs.coreutils
|
||||
]}"
|
||||
|
|
@ -112,7 +111,7 @@ let
|
|||
extraConfig = mkOption {
|
||||
type = podman-lib.extraConfigType;
|
||||
default = { };
|
||||
example = literalExpression ''
|
||||
example = lib.literalExpression ''
|
||||
{
|
||||
Network = {
|
||||
ContainerConfModule = "/etc/nvd.conf";
|
||||
|
|
@ -179,11 +178,11 @@ in
|
|||
|
||||
config =
|
||||
let
|
||||
networkQuadlets = mapAttrsToList toQuadletInternal cfg.networks;
|
||||
networkQuadlets = lib.mapAttrsToList toQuadletInternal cfg.networks;
|
||||
in
|
||||
mkIf cfg.enable {
|
||||
lib.mkIf cfg.enable {
|
||||
services.podman.internal.quadletDefinitions = networkQuadlets;
|
||||
assertions = flatten (map (network: network.assertions) networkQuadlets);
|
||||
assertions = lib.flatten (map (network: network.assertions) networkQuadlets);
|
||||
|
||||
xdg.configFile."podman/networks.manifest".text = podman-lib.generateManifestText networkQuadlets;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue