Required tree-wide re-wiring of the host option. Now, rather than each host having a monolithic restic.nix file, the hosts restic.nix file just specifies the password and url of the restic repository. Eatch module then definies specific paths to backup and any pre and post commands that need to be performed. Each backed up service gets an independent systemd backup service and timer.
58 lines
1.3 KiB
Nix
58 lines
1.3 KiB
Nix
{
|
|
inputs,
|
|
myLib,
|
|
...
|
|
}:
|
|
(inputs.nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = {inherit inputs myLib;};
|
|
modules = [
|
|
inputs.home-manager.nixosModules.home-manager
|
|
../configs/nixos/sshd.nix
|
|
../configs/nixos/common.nix
|
|
({
|
|
config,
|
|
pkgs,
|
|
modulesPath,
|
|
lib,
|
|
...
|
|
}: {
|
|
imports = ["${modulesPath}/virtualisation/proxmox-lxc.nix"];
|
|
proxmoxLXC.manageHostName = false;
|
|
boot.loader.grub.enable = lib.mkForce false;
|
|
boot.loader.systemd-boot.enable = lib.mkForce false;
|
|
host.details = {
|
|
user = "gabe";
|
|
fullName = "Gabe Venberg";
|
|
};
|
|
|
|
home-manager.users.${config.host.details.user} = {
|
|
inputs,
|
|
osConfig,
|
|
...
|
|
}: {
|
|
host.details = osConfig.host.details;
|
|
user = {
|
|
git = {
|
|
profile = {
|
|
name = config.host.details.fullName;
|
|
email = "gabevenberg@gmail.com";
|
|
};
|
|
workProfile.enable = false;
|
|
};
|
|
};
|
|
imports = [
|
|
../roles/home-manager/minimal-terminal.nix
|
|
../configs/home-manager/common.nix
|
|
inputs.nixvim.homeManagerModules.nixvim
|
|
];
|
|
};
|
|
|
|
system.stateVersion = "24.05";
|
|
})
|
|
];
|
|
})
|
|
.config
|
|
.system
|
|
.build
|
|
.tarball
|