distrobox

This commit is contained in:
Danilo Reyes 2024-08-09 23:39:45 -06:00
parent 6f8edb2052
commit fd3237464e
2 changed files with 7 additions and 8 deletions

View File

@ -6,6 +6,7 @@
../../pkgs/obs-studio.nix ../../pkgs/obs-studio.nix
]; ];
my = { my = {
enableContainers = true;
emacs.enable = true; emacs.enable = true;
apps = { apps = {
art.enable = true; art.enable = true;
@ -76,6 +77,7 @@
groups.nixremote.gid = 555; groups.nixremote.gid = 555;
users = { users = {
jawz.packages = with pkgs; [ jawz.packages = with pkgs; [
distrobox # install packages from other os
gocryptfs # encrypted filesystem! shhh!!! gocryptfs # encrypted filesystem! shhh!!!
torrenttools # create torrent files from the terminal! torrenttools # create torrent files from the terminal!
vcsi # video thumbnails for torrents, can I replace it with ^? vcsi # video thumbnails for torrents, can I replace it with ^?
@ -130,9 +132,4 @@
directoryRoot = "/resilio"; directoryRoot = "/resilio";
}; };
}; };
virtualisation.podman = {
enable = true;
dockerCompat = true;
defaultNetwork.settings.dns_enabled = true;
};
} }

View File

@ -24,7 +24,7 @@ let
proxy_http_version 1.1; proxy_http_version 1.1;
''; '';
}; };
enableDocker = lib.any (opt: opt) [ enableContainers = lib.any (opt: opt) [
config.my.servers.collabora.enable config.my.servers.collabora.enable
config.my.servers.ryot.enable config.my.servers.ryot.enable
config.my.servers.lidarr.enable config.my.servers.lidarr.enable
@ -103,8 +103,10 @@ in {
default = "CaptainJawZ@protonmail.com"; default = "CaptainJawZ@protonmail.com";
description = "localhost smtp email"; description = "localhost smtp email";
}; };
enableContainers = lib.mkEnableOption "enable";
}; };
config = { config = {
my.enableContainers = lib.mkDefault false;
my.servers = { my.servers = {
jellyfin = { jellyfin = {
enable = lib.mkDefault false; enable = lib.mkDefault false;
@ -143,7 +145,7 @@ in {
virtualisation = { virtualisation = {
containers.enable = true; containers.enable = true;
oci-containers.backend = "podman"; oci-containers.backend = "podman";
podman = lib.mkIf enableDocker { podman = lib.mkIf enableContainers {
enable = true; enable = true;
dockerCompat = true; dockerCompat = true;
dockerSocket.enable = true; dockerSocket.enable = true;
@ -155,7 +157,7 @@ in {
}; };
}; };
}; };
security.acme = lib.mkIf config.services.nginx.enable { security.acme = lib.mkIf (config.services.nginx.enable || config.my.enableContainers) {
acceptTerms = true; acceptTerms = true;
defaults.email = config.my.email; defaults.email = config.my.email;
}; };