Moved over containers

This commit is contained in:
ari committed 2024-08-18 21:27:16 -04:00
1 parent a86fd67f5a
commit 1d0188e199
5 files changed
+6 -10

No files matched your search

+1
View File
@@ -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 = {
+2 -2
View File
@@ -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 {
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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 = {
+1 -6
View File
@@ -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;