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 ];
}
+3 -4
View File
@@ -4,7 +4,7 @@
, enableFonts ? true
, enableNetworking ? true
, enableSSH ? true
, containerRuntime ? null
, containers ? { runtime = null; }
, hardware ? { enable = false; }
, enablePrometheusExporters ? false
, ...
@@ -14,10 +14,9 @@
(import ./core.nix { user = user; })
./rootUser.nix
(import ./user.nix { user = user; })
(import ./containers/default.nix {
(import ./containers/default.nix ({
user = user;
runtime = containerRuntime;
})
} // containers))
] ++ (if enableFonts then [ ./fonts.nix ] else [ ])
++ (if hardware.enable then [ ./hardware.nix ] else [ ])
++ (if enableNetworking then