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; prettier.enable = true;
just.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; }).config.build.wrapper;
}; };
} }

View file

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

View file

@ -28,7 +28,7 @@ in
settings = { settings = {
server = { server = {
DOMAIN = cfg.domain; DOMAIN = cfg.domain;
ROOT_URL = "https://${config.services.forgejo.settings.server.DOMAIN}/"; ROOT_URL = "https://${cfg.domain}/";
HTTP_PORT = cfg.port; HTTP_PORT = cfg.port;
LANDING_PAGE = "explore"; LANDING_PAGE = "explore";
}; };
@ -40,7 +40,11 @@ in
database.SQLITE_JOURNAL_MODE = "WAL"; database.SQLITE_JOURNAL_MODE = "WAL";
cache = { cache = {
ADAPTER = "twoqueue"; 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"; "repository.signing".DEFAULT_TRUST_MODEL = "committer";
security.LOGIN_REMEMBER_DAYS = 365; security.LOGIN_REMEMBER_DAYS = 365;

View file

@ -10,8 +10,6 @@
KbdInteractiveAuthentication = false; KbdInteractiveAuthentication = false;
PermitRootLogin = "no"; PermitRootLogin = "no";
AllowUsers = [ config.users.users.forgejo.name ]; 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 ]; imports = [ self.homeManagerModules.default ];
systemd.user.startServices = "sd-switch";
xdg = { xdg = {
enable = true; enable = true;
userDirs = { userDirs = {
enable = true; enable = true;
createDirectories = true; createDirectories = true;
extraConfig.XDG_SCREENSHOTS_DIR = "$HOME/Pictures/Screenshots"; extraConfig.XDG_SCREENSHOTS_DIR = "${config.xdg.userDirs.pictures}/Screenshots";
}; };
}; };
} }