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

@ -1,8 +1,10 @@
keys: keys:
- &muon age1m97a3eptxwpdd7h5kkqe9gkmhg6rquc64qjmlsfqfhfqv8q72crqrylhgc - &muon age1m97a3eptxwpdd7h5kkqe9gkmhg6rquc64qjmlsfqfhfqv8q72crqrylhgc
- &muho age1v4s4hg7u3vjjkarvrk7v6ev7w3wja2r5xm7f4t06culw3fuq7qns8sfju7
creation_rules: creation_rules:
- path_regex: modules/nixos/sops/secrets.ya?ml$ - path_regex: modules/nixos/sops/secrets.ya?ml$
key_groups: key_groups:
- age: - age:
- *muon - *muon
- *muho

View file

@ -2,6 +2,7 @@
mods.server.nginx.ports = { mods.server.nginx.ports = {
photos = 3001; photos = 3001;
homebox = 3002; homebox = 3002;
git = 3003;
search = 8081; search = 8081;
videos = 8082; videos = 8082;

View file

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