Add forgejo

This commit is contained in:
muon 2025-01-25 14:27:23 +00:00
parent 194c838432
commit be802886d6
4 changed files with 25 additions and 11 deletions

View file

@ -1,7 +1,5 @@
{ pkgs, lib, config, ... }: {
imports = [
./media.nix
];
imports = [ ./media.nix ];
options.mods.docker = {
enable = lib.mkEnableOption {
@ -14,19 +12,19 @@
environment.systemPackages = [
pkgs.arion
# Do install the docker CLI to talk to podman.
# Not needed when virtualisation.docker.enable = true;
# Do install the docker CLI to talk to podman.
# Not needed when virtualisation.docker.enable = true;
pkgs.docker-client
];
# Arion works with Docker, but for NixOS-based containers, you need Podman
# since NixOS 21.05.
virtualisation.docker.enable = false;
virtualisation.podman.enable = true;
virtualisation.podman.dockerSocket.enable = true;
virtualisation.podman.defaultNetwork.dnsname.enable = true;
virtualisation.docker.enable = true;
# virtualisation.podman.enable = true;
# virtualisation.podman.dockerSocket.enable = true;
# virtualisation.podman.defaultNetwork.dnsname.enable = true;
# Use your username instead of `myuser`
users.extraUsers.${config.mods.user.name}.extraGroups = ["podman"];
users.extraUsers.${config.mods.user.name}.extraGroups = [ "podman" ];
};
}