Merge branch 'main' of gh:greg-hellings/nixos-config

This commit is contained in:
Greg Hellings
2023-05-29 18:50:33 -05:00
9 changed files with 41 additions and 21 deletions
Generated
+4 -4
View File
@@ -158,16 +158,16 @@
}, },
"nixstable": { "nixstable": {
"locked": { "locked": {
"lastModified": 1682600000, "lastModified": 1685094109,
"narHash": "sha256-ha4BehR1dh8EnXSoE1m/wyyYVvHI9txjW4w5/oxsW5Y=", "narHash": "sha256-u+awry81RAVV+fJBCZt+GKWsISSLJKUNbVwKccHeaPU=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "50fc86b75d2744e1ab3837ef74b53f103a9b55a0", "rev": "551a52bfdd02e7b75be5faf9b42f864112d88654",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "nixos", "owner": "nixos",
"ref": "nixos-22.05", "ref": "nixos-23.05",
"repo": "nixpkgs", "repo": "nixpkgs",
"type": "github" "type": "github"
} }
+1 -1
View File
@@ -5,7 +5,7 @@
description = "Greg's machines!"; description = "Greg's machines!";
inputs = { inputs = {
nixstable.url = "github:nixos/nixpkgs/nixos-22.05"; nixstable.url = "github:nixos/nixpkgs/nixos-23.05";
nixunstable.url = "github:nixos/nixpkgs/nixos-unstable"; nixunstable.url = "github:nixos/nixpkgs/nixos-unstable";
agenix.url = "github:ryantm/agenix"; agenix.url = "github:ryantm/agenix";
flake-utils.url = "github:numtide/flake-utils"; flake-utils.url = "github:numtide/flake-utils";
+1
View File
@@ -8,6 +8,7 @@
./nextcloud.nix ./nextcloud.nix
./nginx.nix ./nginx.nix
./postgres.nix ./postgres.nix
./rei.nix
./synapse.nix ./synapse.nix
]; ];
greg.home = false; greg.home = false;
+9 -8
View File
@@ -23,26 +23,27 @@ in {
services.gitea = rec { services.gitea = rec {
enable = true; enable = true;
appName = "Greg's Sources"; appName = "Greg's Sources";
cookieSecure = true;
database = { database = {
type = "postgres"; type = "postgres";
user = "gitea"; user = "gitea";
}; };
disableRegistration = true;
domain = srcDomain;
dump = { dump = {
enable = true; enable = true;
type = "tar.xz"; type = "tar.xz";
}; };
httpPort = 3001; settings = {
log = { server = rec {
level = "Info"; ROOT_URL = "https://${DOMAIN}/";
DOMAIN = srcDomain;
};
service.DISABLE_REGISTRATION = pkgs.lib.mkForce true;
session.COOKIE_SECURE = pkgs.lib.mkForce true;
log.level = "Info";
}; };
rootUrl = "https://${domain}/";
}; };
greg.proxies."${srcDomain}" = { greg.proxies."${srcDomain}" = {
target = "http://localhost:${toString config.services.gitea.httpPort}"; target = "http://localhost:${toString config.services.gitea.settings.server.HTTP_PORT}";
ssl = true; ssl = true;
genAliases = false; genAliases = false;
}; };
+2 -1
View File
@@ -6,9 +6,10 @@
services.nextcloud = { services.nextcloud = {
enable = true; enable = true;
package = pkgs.nextcloud24; package = pkgs.nextcloud26;
appstoreEnable = true; appstoreEnable = true;
hostName = "next.${config.networking.domain}"; hostName = "next.${config.networking.domain}";
enableBrokenCiphersForSSE = false;
https = true; https = true;
config = { config = {
adminpassFile = config.age.secrets.nextcloudadmin.path; adminpassFile = config.age.secrets.nextcloudadmin.path;
+2 -4
View File
@@ -53,10 +53,8 @@ root root postgres
postgresLog = { postgresLog = {
enable = true; enable = true;
files = "/var/lib/postgresql/*/log/*.log"; files = "/var/lib/postgresql/*/log/*.log";
extraConfig = (lib.strings.concatStringsSep "\n" [ compress = true;
"compress" compresscmd = "${pkgs.xz}/bin/xz";
"compresscmd=${pkgs.xz}/bin/xz"
]);
}; };
}; };
}; };
+15
View File
@@ -0,0 +1,15 @@
{ ... }:
{
services = {
odoo = {
enable = true;
domain = "doublel.thehellings.com";
settings.options = {
db_host = "localhost";
db_port = "5432";
db_user = "odoo";
dbfilter = "^doublel.*$";
};
};
};
}
+6 -1
View File
@@ -32,7 +32,12 @@
}; };
}; };
nixpkgs.config.allowUnfree = true; nixpkgs.config = {
allowUnfree = true;
permittedInsecurePackages = [
"qtwebkit-5.212.0-alpha4"
];
};
# Base packages that need to be in all my hosts # Base packages that need to be in all my hosts
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
+1 -2
View File
@@ -50,8 +50,7 @@ let
}); });
in rec { in rec {
#gitea = super.unstable.gitea; #python3 = self.unstable.python3;
gregpy = myPython; gregpy = myPython;
my-py-addons = rec { my-py-addons = rec {