feat: configure forgejo via env vars

This commit is contained in:
Nydragon 2024-10-01 20:03:05 +02:00
parent 6d6009a4e9
commit 812dbbd900
Signed by: nydragon
SSH key fingerprint: SHA256:iQnIC12spf4QjWSbarmkD2No1cLMlu6TWoV7K6cYF5g
3 changed files with 15 additions and 11 deletions

View file

@ -14,11 +14,15 @@
./home.nix ./home.nix
]; ];
boot.loader.systemd-boot.enable = true; boot.loader = {
boot.loader.efi.canTouchEfiVariables = true; systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
hardware.bluetooth.enable = true; hardware.bluetooth = {
hardware.bluetooth.powerOnBoot = true; enable = true;
powerOnBoot = true;
};
services.blueman.enable = true; services.blueman.enable = true;
@ -33,6 +37,7 @@
services = { services = {
displayManager.sddm.enable = true; displayManager.sddm.enable = true;
dbus.enable = true; dbus.enable = true;
tailscale = { tailscale = {
enable = true; enable = true;
extraUpFlags = [ extraUpFlags = [
@ -52,6 +57,7 @@
firefox.enable = true; firefox.enable = true;
thunderbird.enable = true; thunderbird.enable = true;
sway.enable = true; sway.enable = true;
hyprland.enable = true;
}; };
security.polkit.enable = true; security.polkit.enable = true;

View file

@ -6,14 +6,11 @@
environment = { environment = {
"USER_GID" = "1000"; "USER_GID" = "1000";
"USER_UID" = "1000"; "USER_UID" = "1000";
FORGEJO__migrations__ALLOWED_DOMAINS = true; FORGEJO__migrations__ALLOWED_DOMAINS = "github.com,*.github.com";
FORGEJO__server__SSH_PORT = 222; FORGEJO__server__SSH_PORT = "222";
}; };
volumes = [ volumes = [
#"/etc/localtime:/etc/localtime:ro"
#"/etc/timezone:/etc/timezone:ro"
"test_forgejo:/data:rw" "test_forgejo:/data:rw"
"${./app.ini}:/data/gitea/app.ini:ro"
]; ];
ports = [ ports = [
"3000:3000/tcp" "3000:3000/tcp"

View file

@ -1,11 +1,12 @@
{ username, ... }: { username, pkgs, ... }:
{ {
users.users.${username} = { users.users.${username} = {
isNormalUser = true; isNormalUser = true;
createHome = true; createHome = true;
useDefaultShell = true;
extraGroups = [ extraGroups = [
"wheel" "wheel"
]; ];
shell = pkgs.fish;
}; };
programs.fish.enable = true;
} }