79 lines
2.1 KiB
Nix
79 lines
2.1 KiB
Nix
{ inputs, config, pkgs, lib, ... }: {
|
|
imports = [ ./hw.nix ./nw.nix ../../modules/secrets.nix ];
|
|
|
|
time.timeZone = "America/New_York";
|
|
|
|
# Generated by nixos-infect
|
|
boot.tmp.cleanOnBoot = true;
|
|
zramSwap.enable = true;
|
|
networking.hostName = "chaewon-nixos-ash-1";
|
|
|
|
# Select internationalisation properties.
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
i18n.extraLocaleSettings = {
|
|
LC_ADDRESS = "en_US.UTF-8";
|
|
LC_IDENTIFICATION = "en_US.UTF-8";
|
|
LC_MEASUREMENT = "en_US.UTF-8";
|
|
LC_MONETARY = "en_US.UTF-8";
|
|
LC_NAME = "en_US.UTF-8";
|
|
LC_NUMERIC = "en_US.UTF-8";
|
|
LC_PAPER = "en_US.UTF-8";
|
|
LC_TELEPHONE = "en_US.UTF-8";
|
|
LC_TIME = "en_US.UTF-8";
|
|
};
|
|
|
|
users.users.priime = {
|
|
isNormalUser = true;
|
|
description = "Lucas";
|
|
extraGroups = [ "wheel" "docker" ];
|
|
packages = with pkgs; [ ];
|
|
shell = pkgs.fish;
|
|
openssh.authorizedKeys.keys = [
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBGpnPYxrYnmtFaf591Q80FQPb01dqTwlH58V6uRa7Fi"
|
|
];
|
|
};
|
|
|
|
programs.fish.enable = true;
|
|
|
|
services.forgejo = {
|
|
enable = true;
|
|
database.type = "postgres";
|
|
lfs.enable = true;
|
|
settings = {
|
|
server = {
|
|
DOMAIN = "git.priime.dev";
|
|
ROOT_URL = "https://git.priime.dev/";
|
|
HTTP_PORT = 3000;
|
|
};
|
|
service.DISABLE_REGISTRATION = true;
|
|
};
|
|
};
|
|
|
|
virtualisation.docker.enable = true;
|
|
|
|
services.gitea-actions-runner = {
|
|
package = pkgs.forgejo-actions-runner;
|
|
instances.default = {
|
|
enable = true;
|
|
name = "monolith";
|
|
url = "https://git.priime.dev";
|
|
tokenFile = config.age.secrets.forgejo-runner-token.path;
|
|
# Default labels
|
|
labels = [
|
|
"ubuntu-latest:docker://node:16-bullseye"
|
|
"ubuntu-22.04:docker://node:16-bullseye"
|
|
"ubuntu-20.04:docker://node:16-bullseye"
|
|
"ubuntu-18.04:docker://node:16-buster"
|
|
];
|
|
};
|
|
};
|
|
|
|
services.tailscale.enable = true;
|
|
|
|
services.thelounge.enable = true;
|
|
|
|
services.stirling-pdf.enable = true;
|
|
|
|
system.stateVersion = "23.11";
|
|
home-manager.users.priime = { pkgs, ... }: { imports = [ ./home.nix ]; };
|
|
}
|