Everything is working on the bigbox

This commit is contained in:
ari committed 2024-07-19 02:20:11 -04:00
1 parent 1f8639dda2
commit 0d9d0014f8
8 files changed
+94 -44

No files matched your search

+8 -3
View File
@@ -1,11 +1,16 @@
{ user, runtime ? null }:
{ user, runtime ? null, enableOnBoot ? false }:
{ pkgs, ... }: {
virtualisation.containers.enable = true;
environment.systemPackages = with pkgs; [ dive podman-tui ];
environment.systemPackages = with pkgs; [ dive ];
imports = (if runtime == "podman" then
[ (import ./podman.nix { user = user; }) ]
else if runtime == "docker" then
[ (import ./docker.nix { user = user; }) ]
[
(import ./docker.nix {
user = user;
enableOnBoot = enableOnBoot;
})
]
else
[ ]);
}
+2 -2
View File
@@ -1,9 +1,9 @@
{ user }:
{ user, enableOnBoot ? false, ... }:
{ pkgs, ... }: {
virtualisation.docker = {
enable = true;
autoPrune.enable = true;
enableOnBoot = false;
enableOnBoot = enableOnBoot;
liveRestore = false;
};
environment.systemPackages = with pkgs; [ docker-compose ];
+2 -2
View File
@@ -1,4 +1,4 @@
{ user }:
{ user, ... }:
{ pkgs, ... }: {
virtualisation.oci-containers.backend = "podman";
virtualisation = {
@@ -10,5 +10,5 @@
autoPrune.enable = true;
};
};
environment.systemPackages = with pkgs; [ podman-compose ];
environment.systemPackages = with pkgs; [ podman-compose podman-tui ];
}