Moved over containers
This commit is contained in:
1 parent
a86fd67f5a
commit
1d0188e199
5 files changed
+6
-10
No files matched your search
@@ -36,6 +36,7 @@
|
||||
skyg.home-manager.version = homeManagerVersion;
|
||||
skyg.core.substituters = localNixCaches;
|
||||
skyg.networkDrives.enabled = enableNetworkDrives;
|
||||
skyg.common.containers = (if os.enable then os.containers else { });
|
||||
system.stateVersion = systemStateVersion;
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
nix = {
|
||||
|
||||
@@ -10,12 +10,12 @@ with lib;
|
||||
options = {
|
||||
skyg.common.containers = {
|
||||
runtime = mkOption {
|
||||
description = "DOcker vs podman";
|
||||
description = "Docker vs podman";
|
||||
type = types.str;
|
||||
default = "docker";
|
||||
};
|
||||
enableOnBoot = mkOption {
|
||||
type = types.boolean;
|
||||
type = types.bool;
|
||||
default = false;
|
||||
};
|
||||
localDockerRegistries = mkOption {
|
||||
|
||||
@@ -4,7 +4,7 @@ let
|
||||
cfg = config.skyg.common.containers;
|
||||
in
|
||||
{
|
||||
config = lib.mkIf cfg.runtime == "docker" {
|
||||
config = lib.mkIf (cfg.runtime == "docker") {
|
||||
virtualisation.docker = {
|
||||
enable = true;
|
||||
autoPrune.enable = true;
|
||||
|
||||
@@ -3,7 +3,7 @@ let
|
||||
cfg = config.skyg.common.containers;
|
||||
in
|
||||
{
|
||||
config = lib.mkIf cfg.runtime == "podman" {
|
||||
config = lib.mkIf (cfg.runtime == "podman") {
|
||||
virtualisation.oci-containers.backend = "podman";
|
||||
virtualisation = {
|
||||
podman = {
|
||||
|
||||
@@ -10,12 +10,7 @@
|
||||
, ...
|
||||
}:
|
||||
{ pkgs, ... }: {
|
||||
imports = [
|
||||
(import ./containers/default.nix ({
|
||||
user = user;
|
||||
} // containers))
|
||||
]
|
||||
++ (if enableSSH then
|
||||
imports = (if enableSSH then
|
||||
[
|
||||
(import ./ssh.nix {
|
||||
enableSSHServer = true;
|
||||
|
||||
Reference in new issue
Block a user