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
];
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
hardware.bluetooth.enable = true;
hardware.bluetooth.powerOnBoot = true;
hardware.bluetooth = {
enable = true;
powerOnBoot = true;
};
services.blueman.enable = true;
@ -33,6 +37,7 @@
services = {
displayManager.sddm.enable = true;
dbus.enable = true;
tailscale = {
enable = true;
extraUpFlags = [
@ -52,6 +57,7 @@
firefox.enable = true;
thunderbird.enable = true;
sway.enable = true;
hyprland.enable = true;
};
security.polkit.enable = true;

View file

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

View file

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