Merge branch 'main' of codeberg.org:muon/home

This commit is contained in:
muon 2025-01-17 21:02:40 +00:00
commit 8090c57bbc
4 changed files with 19 additions and 1 deletions

View file

@ -8,7 +8,6 @@
users.users.${config.mods.user.name} = {
isNormalUser = true;
extraGroups = [ "wheel" ];
initialPassword = "changeme";
hashedPasswordFile = config.sops.secrets.muon-password.path;
shell = if config.programs.zsh.enable then pkgs.zsh else pkgs.bash;
};

View file

@ -0,0 +1,16 @@
{ pkgs, lib, config, ... }:
let
cfg = config.mods.server.git;
port = config.mods.server.nginx.ports.git;
in with lib; {
options.mods.server = {
git = {
enable = mkEnableOption {
default = false;
description = "enables forgejo server";
};
};
};
config = mkIf cfg.enable { services.forgejo = { enable = true; }; };
}