init: macmini nixos configuration.
This commit is contained in:
38
modules/services/gitea.nix
Normal file
38
modules/services/gitea.nix
Normal file
@@ -0,0 +1,38 @@
|
||||
{ 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
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user