Housekeeping

This commit is contained in:
SebastianStork 2025-06-04 21:55:01 +02:00
parent 393be96558
commit f47534c8f3
9 changed files with 11 additions and 11 deletions

View file

@ -11,7 +11,7 @@
prettier.enable = true;
just.enable = true;
};
settings.formatter.nixfmt.excludes = [ "modules/home/shell/aliases.nix" ];
settings.formatter.nixfmt.excludes = [ "modules/home/programs/shell/aliases.nix" ];
}).config.build.wrapper;
};
}

View file

@ -28,5 +28,5 @@ install host destination='root@installer':
repair:
nix-store --verify --check-contents --repair
repl hostname='$(hostname)':
nix repl .#nixosConfigurations.{{ hostname }}
repl host='$(hostname)':
nix repl .#nixosConfigurations.{{ host }}

View file

@ -28,7 +28,7 @@ in
settings = {
server = {
DOMAIN = cfg.domain;
ROOT_URL = "https://${config.services.forgejo.settings.server.DOMAIN}/";
ROOT_URL = "https://${cfg.domain}/";
HTTP_PORT = cfg.port;
LANDING_PAGE = "explore";
};
@ -40,7 +40,11 @@ in
database.SQLITE_JOURNAL_MODE = "WAL";
cache = {
ADAPTER = "twoqueue";
HOST = ''{"size":100, "recent_ratio":0.25, "ghost_ratio":0.5}'';
HOST = builtins.toJSON {
size = 100;
recent_ratio = 0.25;
ghost_ratio = 0.5;
};
};
"repository.signing".DEFAULT_TRUST_MODEL = "committer";
security.LOGIN_REMEMBER_DAYS = 365;

View file

@ -10,8 +10,6 @@
KbdInteractiveAuthentication = false;
PermitRootLogin = "no";
AllowUsers = [ config.users.users.forgejo.name ];
# https://forgejo.org/docs/latest/admin/recommendations/#git-over-ssh
AcceptEnv = "GIT_PROTOCOL";
};
};
};

View file

@ -1,15 +1,13 @@
{ self, ... }:
{ config, self, ... }:
{
imports = [ self.homeManagerModules.default ];
systemd.user.startServices = "sd-switch";
xdg = {
enable = true;
userDirs = {
enable = true;
createDirectories = true;
extraConfig.XDG_SCREENSHOTS_DIR = "$HOME/Pictures/Screenshots";
extraConfig.XDG_SCREENSHOTS_DIR = "${config.xdg.userDirs.pictures}/Screenshots";
};
};
}