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
|
./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;
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue