2024-01-23 11:51:13 -06:00
|
|
|
{
|
|
|
|
inputs,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
imports = with inputs.self.nixosModules; [
|
|
|
|
docker
|
|
|
|
];
|
|
|
|
|
2024-01-23 15:50:42 -06:00
|
|
|
languages = {
|
2024-01-25 13:59:33 -06:00
|
|
|
nim = true;
|
|
|
|
python = true;
|
2024-01-23 15:50:42 -06:00
|
|
|
};
|
2024-01-23 19:13:42 -06:00
|
|
|
cli.enable = true;
|
2024-01-23 15:50:42 -06:00
|
|
|
|
2024-01-23 11:51:13 -06:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
rclone
|
|
|
|
];
|
2024-01-23 15:50:42 -06:00
|
|
|
|
2024-01-23 11:51:13 -06:00
|
|
|
# https://francis.begyn.be/blog/nixos-restic-backups
|
|
|
|
# TODO: parameterize to use on algiz AND othalan ...
|
|
|
|
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";
|
|
|
|
paths = ["/home/daylin/services/git/" "/home/daylin/services/gotosocial/" "home/daylin/services/caddy"];
|
|
|
|
};
|
|
|
|
|
|
|
|
security.sudo.wheelNeedsPassword = false;
|
|
|
|
|
|
|
|
users.extraUsers = {
|
|
|
|
daylin = {
|
|
|
|
shell = pkgs.zsh;
|
|
|
|
isNormalUser = true;
|
|
|
|
extraGroups = ["wheel" "docker"];
|
|
|
|
initialPassword = "nix";
|
|
|
|
};
|
|
|
|
git = {
|
|
|
|
isNormalUser = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.gnupg.agent = {
|
|
|
|
enable = true;
|
|
|
|
enableSSHSupport = true;
|
|
|
|
};
|
|
|
|
}
|