mirror of https://git.jolheiser.com/ugit.git
27 lines
474 B
Nix
27 lines
474 B
Nix
|
{ config, pkgs, ... }:
|
||
|
{
|
||
|
imports = [ ./module.nix ];
|
||
|
|
||
|
users.users.jolheiser = {
|
||
|
isNormalUser = true;
|
||
|
extraGroups = [ "wheel" ];
|
||
|
initialPassword = "test";
|
||
|
};
|
||
|
|
||
|
services.ugit = {
|
||
|
enable = true;
|
||
|
hooks = [
|
||
|
{
|
||
|
name = "pre-receive";
|
||
|
content = ''
|
||
|
echo "Pre-receive hook executed"
|
||
|
'';
|
||
|
}
|
||
|
{
|
||
|
name = "ugit-uci";
|
||
|
content = "${config.services.ugit.package}/bin/ugit-uci";
|
||
|
}
|
||
|
];
|
||
|
};
|
||
|
}
|