fixed ssh forwarding to git.geokkjer.eu
This commit is contained in:
parent
f6eb588ccd
commit
2a25c42063
2 changed files with 34 additions and 13 deletions
|
@ -1,8 +1,24 @@
|
|||
{ pkgs, config, ... }:
|
||||
{
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
# Create the git user before Forgejo tries to use it
|
||||
users.users.git = {
|
||||
isSystemUser = true;
|
||||
group = "git";
|
||||
shell = pkgs.bash;
|
||||
home = "/var/lib/forgejo";
|
||||
createHome = true;
|
||||
description = "Forgejo Git Service";
|
||||
};
|
||||
|
||||
users.groups.git = {};
|
||||
|
||||
services.forgejo = {
|
||||
enable = true;
|
||||
user = "git"; # Explicitly set to 'git' user for SSH compatibility
|
||||
user = "git"; # Use the git user we created above
|
||||
group = "git";
|
||||
};
|
||||
|
||||
services.forgejo.settings = {
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
{ pkgs, config, lib, ... }:
|
||||
|
||||
{
|
||||
pkgs,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./gandicloud.nix
|
||||
../../modules/common/base.nix
|
||||
|
@ -10,7 +13,9 @@
|
|||
];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
neovim fastfetch tailscale
|
||||
neovim
|
||||
fastfetch
|
||||
tailscale
|
||||
];
|
||||
|
||||
# Hostname configuration
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue