The `_module.args` option can't be used to pass modules to import, since it can only be used during the config phase, not the import phase.
68 lines
1.6 KiB
Nix
68 lines
1.6 KiB
Nix
{ config, lib, pkgs, aether, ... }:
|
|
{
|
|
networking.hostName = "toki-aether";
|
|
time.timeZone = "America/New_York";
|
|
|
|
nix.package = pkgs.nixVersions.latest;
|
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|
|
|
users.mutableUsers = false;
|
|
users.users.root = {
|
|
hashedPassword = "$y$j9T$LHeAgn5XytQM5DLfGSDT30$9OD3eIua5vEy4/GFBbT1oe1UnlNxDHt9thqsiqcGXy7";
|
|
openssh.authorizedKeys.keys = (import secrets/secrets.nix).keys;
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
openssl
|
|
rsync
|
|
curl
|
|
git
|
|
wget
|
|
];
|
|
|
|
# Aether modules
|
|
|
|
imports = [
|
|
aether.aether
|
|
aether.deploy-rpi5
|
|
];
|
|
|
|
aether.domain = "tokinanpa.dev";
|
|
aether.acmeEmail = "kiana.a.sheibani@gmail.com";
|
|
|
|
aether.forgejo.templates = ./forgejo-templates;
|
|
services.forgejo.settings = {
|
|
DEFAULT.APP_NAME = "Code by toki!";
|
|
service.DISABLE_REGISTRATION = true;
|
|
|
|
repository = {
|
|
DEFAULT_REPO_UNITS = "repo.code,repo.issues,repo.pulls";
|
|
|
|
ENABLE_PUSH_CREATE_USER = true;
|
|
DEFAULT_PUSH_CREATE_PRIVATE = false;
|
|
|
|
PREFERRED_LICENSES = "MIT,GPL-3.0-or-later";
|
|
};
|
|
mirror.DEFAULT_INTERVAL = "1h";
|
|
|
|
indexer = {
|
|
REPO_INDEXER_ENABLED = true;
|
|
REPO_INDEXER_EXCLUDE = "**.pdf, **.png, **.jpg, **.jpeg, **.svg, **.web, **.gpg, **.age";
|
|
};
|
|
|
|
ui = {
|
|
DEFAULT_THEME = "forgejo-dark";
|
|
GRAPH_MAX_COMMIT_NUM = 250;
|
|
};
|
|
"ui.meta" = {
|
|
AUTHOR = "Kiana Sheibani";
|
|
DESCRIPTION = "Code by toki! Powered by Forgejo";
|
|
KEYWORDS = "git,forge,forgejo,toki,tokinanpa";
|
|
};
|
|
"service.explore".DISABLE_USERS_PAGE = true;
|
|
|
|
federation.ENABLED = true;
|
|
};
|
|
|
|
system.stateVersion = "24.05";
|
|
}
|