2024-01-23 11:51:13 -06:00
|
|
|
{
|
2024-02-19 11:05:47 -06:00
|
|
|
self,
|
2024-01-23 11:51:13 -06:00
|
|
|
pkgs,
|
2024-04-28 09:12:56 -05:00
|
|
|
enabled,
|
2024-01-23 11:51:13 -06:00
|
|
|
...
|
2024-05-06 14:32:00 -05:00
|
|
|
}:
|
|
|
|
{
|
|
|
|
imports = with self.nixosModules; [ restic ];
|
2024-01-23 11:51:13 -06:00
|
|
|
|
2024-03-19 08:56:51 -05:00
|
|
|
oizys = {
|
|
|
|
languages = [
|
|
|
|
"nim"
|
2024-03-21 12:23:16 -05:00
|
|
|
"node" # for docker langservers
|
2024-03-19 08:56:51 -05:00
|
|
|
"python"
|
|
|
|
];
|
2024-05-06 15:30:10 -05:00
|
|
|
rune.motd = enabled;
|
2024-03-21 12:23:16 -05:00
|
|
|
|
2024-03-19 08:56:51 -05:00
|
|
|
docker = enabled;
|
2024-03-19 09:49:43 -05:00
|
|
|
backups = enabled;
|
2024-07-07 09:47:59 -05:00
|
|
|
nix-ld = enabled;
|
2024-03-19 08:56:51 -05:00
|
|
|
};
|
2024-01-23 15:50:42 -06:00
|
|
|
|
2024-01-23 11:51:13 -06:00
|
|
|
environment.systemPackages = with pkgs; [
|
2024-03-19 09:49:43 -05:00
|
|
|
(writeShellScriptBin "gitea" ''
|
2024-01-29 09:57:03 -06:00
|
|
|
ssh -p 2222 -o StrictHostKeyChecking=no git@127.0.0.1 "SSH_ORIGINAL_COMMAND=\"$SSH_ORIGINAL_COMMAND\" $0 $@"
|
2024-01-29 10:43:35 -06:00
|
|
|
'')
|
2024-01-23 11:51:13 -06:00
|
|
|
];
|
2024-01-23 15:50:42 -06:00
|
|
|
|
2024-01-23 11:51:13 -06:00
|
|
|
services.restic.backups.gdrive = {
|
|
|
|
# directories created by gitea and soft-serve aren't world readable
|
|
|
|
user = "root";
|
|
|
|
rcloneConfigFile = "/home/daylin/.config/rclone/rclone.conf";
|
|
|
|
repository = "rclone:g:archives/algiz";
|
|
|
|
passwordFile = "/home/daylin/.config/restic/algiz-pass";
|
2024-05-06 14:32:00 -05:00
|
|
|
paths = [
|
|
|
|
"/home/daylin/services/git/"
|
|
|
|
"/home/daylin/services/gotosocial/"
|
2024-07-08 12:29:16 -05:00
|
|
|
"/home/daylin/services/caddy/"
|
|
|
|
"/home/daylin/services/wedding-website/"
|
2024-05-06 14:32:00 -05:00
|
|
|
];
|
2024-01-23 11:51:13 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
security.sudo.wheelNeedsPassword = false;
|
|
|
|
|
2024-01-28 13:09:34 -06:00
|
|
|
users.users = {
|
2024-01-23 11:51:13 -06:00
|
|
|
daylin = {
|
2024-05-06 14:32:00 -05:00
|
|
|
extraGroups = [ "docker" ];
|
2024-01-23 11:51:13 -06:00
|
|
|
};
|
2024-02-15 10:28:25 -06:00
|
|
|
|
2024-01-23 11:51:13 -06:00
|
|
|
git = {
|
|
|
|
isNormalUser = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|