nixos/cri-o: source cni and crictl from package
This commit is contained in:
parent
5da87a8c7b
commit
448dc91db4
1 changed files with 4 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ config, lib, pkgs, utils, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
|
@ -93,7 +93,7 @@ in
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
environment.systemPackages = [ cfg.package pkgs.cri-tools ];
|
environment.systemPackages = [ cfg.package pkgs.cri-tools ];
|
||||||
|
|
||||||
environment.etc."crictl.yaml".source = utils.copyFile "${pkgs.cri-o-unwrapped.src}/crictl.yaml";
|
environment.etc."crictl.yaml".source = "${cfg.package}/etc/crictl.yaml";
|
||||||
|
|
||||||
virtualisation.cri-o.settings.crio = {
|
virtualisation.cri-o.settings.crio = {
|
||||||
storage_driver = cfg.storageDriver;
|
storage_driver = cfg.storageDriver;
|
||||||
|
@ -124,8 +124,8 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.etc."cni/net.d/10-crio-bridge.conf".source = utils.copyFile "${pkgs.cri-o-unwrapped.src}/contrib/cni/10-crio-bridge.conf";
|
environment.etc."cni/net.d/10-crio-bridge.conf".source = "${cfg.package}/etc/cni/net.d/10-crio-bridge.conf";
|
||||||
environment.etc."cni/net.d/99-loopback.conf".source = utils.copyFile "${pkgs.cri-o-unwrapped.src}/contrib/cni/99-loopback.conf";
|
environment.etc."cni/net.d/99-loopback.conf".source = "${cfg.package}/etc/cni/net.d/99-loopback.conf";
|
||||||
environment.etc."crio/crio.conf.d/00-default.conf".source = cfgFile;
|
environment.etc."crio/crio.conf.d/00-default.conf".source = cfgFile;
|
||||||
|
|
||||||
# Enable common /etc/containers configuration
|
# Enable common /etc/containers configuration
|
||||||
|
|
Loading…
Reference in a new issue