mirror of
https://codeberg.org/muon/home.git
synced 2025-12-05 23:57:46 +00:00
Merge remote-tracking branch 'refs/remotes/origin/main'
This commit is contained in:
commit
d423950236
5 changed files with 27 additions and 11 deletions
|
|
@ -27,6 +27,7 @@ in {
|
||||||
mods.server.astral.enable = false;
|
mods.server.astral.enable = false;
|
||||||
mods.server.astral.autoStart = false;
|
mods.server.astral.autoStart = false;
|
||||||
|
|
||||||
|
mods.docker.enable = true;
|
||||||
mods.docker.media.enable = false;
|
mods.docker.media.enable = false;
|
||||||
|
|
||||||
mods.server.sync.enable = true;
|
mods.server.sync.enable = true;
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,9 @@
|
||||||
|
|
||||||
# Podcasts
|
# Podcasts
|
||||||
gpodder
|
gpodder
|
||||||
|
|
||||||
|
# Interactive
|
||||||
|
bottles
|
||||||
];
|
];
|
||||||
programs.mpv.enable = true;
|
programs.mpv.enable = true;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -53,10 +53,12 @@ in {
|
||||||
|
|
||||||
programs.helix = {
|
programs.helix = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
package = pkgs.evil-helix;
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
keys.normal = {
|
keys.normal = {
|
||||||
"esc" = [ "collapse_selection" "keep_primary_selection" ];
|
"esc" = [ "collapse_selection" "keep_primary_selection" ];
|
||||||
|
"V" = [ "select_mode" "extend_to_line_bounds" ];
|
||||||
};
|
};
|
||||||
editor = {
|
editor = {
|
||||||
line-number = "relative";
|
line-number = "relative";
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
{ pkgs, lib, config, ... }: {
|
{ pkgs, lib, config, ... }: {
|
||||||
imports = [
|
imports = [ ./media.nix ];
|
||||||
./media.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
options.mods.docker = {
|
options.mods.docker = {
|
||||||
enable = lib.mkEnableOption {
|
enable = lib.mkEnableOption {
|
||||||
|
|
@ -14,19 +12,19 @@
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
pkgs.arion
|
pkgs.arion
|
||||||
|
|
||||||
# Do install the docker CLI to talk to podman.
|
# Do install the docker CLI to talk to podman.
|
||||||
# Not needed when virtualisation.docker.enable = true;
|
# Not needed when virtualisation.docker.enable = true;
|
||||||
pkgs.docker-client
|
pkgs.docker-client
|
||||||
];
|
];
|
||||||
|
|
||||||
# Arion works with Docker, but for NixOS-based containers, you need Podman
|
# Arion works with Docker, but for NixOS-based containers, you need Podman
|
||||||
# since NixOS 21.05.
|
# since NixOS 21.05.
|
||||||
virtualisation.docker.enable = false;
|
virtualisation.docker.enable = true;
|
||||||
virtualisation.podman.enable = true;
|
# virtualisation.podman.enable = true;
|
||||||
virtualisation.podman.dockerSocket.enable = true;
|
# virtualisation.podman.dockerSocket.enable = true;
|
||||||
virtualisation.podman.defaultNetwork.dnsname.enable = true;
|
# virtualisation.podman.defaultNetwork.dnsname.enable = true;
|
||||||
|
|
||||||
# Use your username instead of `myuser`
|
# Use your username instead of `myuser`
|
||||||
users.extraUsers.${config.mods.user.name}.extraGroups = ["podman"];
|
users.extraUsers.${config.mods.user.name}.extraGroups = [ "podman" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -12,5 +12,17 @@ in with lib; {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable { services.forgejo = { enable = true; }; };
|
config = mkIf cfg.enable {
|
||||||
|
services.forgejo = {
|
||||||
|
enable = true;
|
||||||
|
stateDir = "/srv/forgejo";
|
||||||
|
lfs.enable = true;
|
||||||
|
settings.server = {
|
||||||
|
HTTP_ADDR = "0.0.0.0";
|
||||||
|
HTTP_PORT = port;
|
||||||
|
SSH_PORT = 91722;
|
||||||
|
DOMAIN = "git.muon.host";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue