remove server config from repo
This commit is contained in:
parent
5096001fcf
commit
259c7dc997
|
@ -1,28 +0,0 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
|
||||
services.gitea = {
|
||||
enable = true;
|
||||
appName = "My awesome Gitea server"; # Give the site a name
|
||||
database = {
|
||||
type = "sqlite3";
|
||||
};
|
||||
settings.server = {
|
||||
DOMAIN = "localhost";
|
||||
ROOT_URL = "http://localhost/";
|
||||
HTTP_PORT = 3001;
|
||||
};
|
||||
};
|
||||
|
||||
# [CONTAINER]
|
||||
boot.isContainer = true;
|
||||
|
||||
# [NETWORK]
|
||||
networking.hostName = "gitea";
|
||||
networking.useDHCP = false;
|
||||
networking.firewall.enable = true;
|
||||
networking.firewall.allowedTCPPorts = [ 3001 ];
|
||||
networking.firewall.allowedUDPPorts = [ ];
|
||||
|
||||
system.stateVersion = "23.11";
|
||||
}
|
|
@ -1,62 +0,0 @@
|
|||
{ pkgs, ... }:
|
||||
let gitea = {
|
||||
host = "10.10.0.1";
|
||||
local = "10.10.0.2";
|
||||
};
|
||||
in
|
||||
{
|
||||
# [CONTAINERS]
|
||||
containers.gitea = {
|
||||
autoStart = true;
|
||||
ephemeral = true;
|
||||
privateNetwork = true;
|
||||
hostAddress = gitea.host;
|
||||
localAddress = gitea.local;
|
||||
config = ./gitea.nix;
|
||||
};
|
||||
|
||||
# [NGINX]
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
recommendedProxySettings = true;
|
||||
virtualHosts = {
|
||||
"localhost" = {
|
||||
locations."/".proxyPass = "http://${gitea.local}:3001";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# [NETWORK]
|
||||
networking.firewall.allowedTCPPorts = [ 80 ];
|
||||
networking.firewall.allowedUDPPorts = [ ];
|
||||
|
||||
# VM test user
|
||||
users.users.test.isSystemUser = true ;
|
||||
users.users.test.initialPassword = "test";
|
||||
users.users.test.group = "test";
|
||||
users.groups.test = {};
|
||||
|
||||
console = {
|
||||
useXkbConfig = true;
|
||||
};
|
||||
|
||||
services.xserver = {
|
||||
xkb = {
|
||||
layout = "fox,sus";
|
||||
options = "ctrl:nocaps";
|
||||
extraLayouts.sus = {
|
||||
description = "Swedish US";
|
||||
languages = [ "se" ];
|
||||
symbolsFile = ../shared/sus.xkb;
|
||||
};
|
||||
extraLayouts.fox = {
|
||||
description = "Layout suitable to be used by a fox";
|
||||
languages = [ "se" ];
|
||||
symbolsFile = ../shared/fox.xkb;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
system.stateVersion = "23.11";
|
||||
|
||||
}
|
13
flake.nix
13
flake.nix
|
@ -67,19 +67,6 @@
|
|||
];
|
||||
};
|
||||
|
||||
nixosConfigurations.cafe = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
nix-config-module
|
||||
./cafe/host.nix
|
||||
];
|
||||
|
||||
virtualisation.forwardPorts = [
|
||||
{ from = "host"; host.port = 80; guest.port = 8080; }
|
||||
];
|
||||
|
||||
};
|
||||
|
||||
keyboardLayouts.fox = ./shared/fox.xkb;
|
||||
|
||||
fonts.sax2nf = import ./shared/sax2nf.nix { pkgs = nixpkgs.legacyPackages.x86_64-linux; };
|
||||
|
|
Loading…
Reference in New Issue
Block a user