mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-11-05 06:03:15 -06:00
49 lines
1.1 KiB
Nix
49 lines
1.1 KiB
Nix
|
{
|
||
|
inputs,
|
||
|
pkgs,
|
||
|
...
|
||
|
}: {
|
||
|
imports = with inputs.self.nixosModules; [
|
||
|
common
|
||
|
docker
|
||
|
|
||
|
# langs
|
||
|
nim
|
||
|
python
|
||
|
];
|
||
|
|
||
|
environment.systemPackages = with pkgs; [
|
||
|
rclone
|
||
|
];
|
||
|
# 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"];
|
||
|
useDefaultShell = true;
|
||
|
initialPassword = "nix";
|
||
|
};
|
||
|
git = {
|
||
|
isNormalUser = true;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
programs.gnupg.agent = {
|
||
|
enable = true;
|
||
|
enableSSHSupport = true;
|
||
|
};
|
||
|
}
|