39 lines
562 B
Nix
39 lines
562 B
Nix
{ inputs, pkgs, ... }:
|
|
{
|
|
imports = [
|
|
inputs.catppuccin.nixosModules.catppuccin
|
|
];
|
|
|
|
# Catppuccin Mocha Style
|
|
|
|
catppuccin.gitea = {
|
|
enable = true;
|
|
accent = "sky";
|
|
flavor = "mocha";
|
|
};
|
|
|
|
services.gitea = {
|
|
enable = true;
|
|
user = "git";
|
|
group = "git";
|
|
|
|
stateDir = "/var/lib/gitea";
|
|
|
|
database = {
|
|
type = "sqlite3";
|
|
};
|
|
|
|
};
|
|
|
|
users.groups.git = { };
|
|
|
|
users.users.git = {
|
|
isNormalUser = true;
|
|
home = "/var/lib/gitea";
|
|
extraGroups = [ "git" ];
|
|
packages = with pkgs; [
|
|
gitea
|
|
];
|
|
};
|
|
}
|