feat: configure forgejo via env vars
This commit is contained in:
parent
6d6009a4e9
commit
812dbbd900
3 changed files with 15 additions and 11 deletions
|
@ -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;
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue