59 lines
1.6 KiB
Nix
59 lines
1.6 KiB
Nix
{ inputs, ... }:
|
|
{
|
|
flake.homeModules."john-pc-ubuntu" = { pkgs, ... }: {
|
|
imports = with inputs.self.homeModules; [
|
|
john
|
|
desktop
|
|
resticprofile
|
|
];
|
|
|
|
home.packages = with pkgs; [
|
|
nixos-rebuild
|
|
];
|
|
# TODO: Add host-specific settings here:
|
|
# - sops secret for `restic_password/john_ubuntu`
|
|
# - resticprofile profile definition
|
|
# - zsh RESTIC* session variables
|
|
};
|
|
|
|
flake.homeConfigurations."john-pc-ubuntu" = inputs.home-manager.lib.homeManagerConfiguration {
|
|
pkgs = import inputs.nixpkgs { system = "x86_64-linux"; };
|
|
modules = [
|
|
inputs.self.homeModules."john-pc-ubuntu"
|
|
|
|
# Include another inline module to set the options created through the jsl-home modules
|
|
({ config, ... }: {
|
|
homeManagerFlakeDir = "${config.xdg.configHome}/home-manager/jsl-dendritic";
|
|
docker.enable = true;
|
|
ssh.matchSets = {
|
|
certs = true;
|
|
appdaemon = true;
|
|
homelab = true;
|
|
};
|
|
shell.program = "zsh";
|
|
sops.secrets."restic_password/john_ubuntu" = {
|
|
path = "${config.xdg.configHome}/resticprofile/password.txt";
|
|
};
|
|
programs.resticprofile = {
|
|
enable= true;
|
|
profiles = {
|
|
default = {
|
|
"inherit" = "base";
|
|
repository = "rest:https://soteria.john-stream.com/john-ubuntu";
|
|
cacert = "${config.home.homeDirectory}/.step/certs/root_ca.crt";
|
|
tls-client-cert = "${config.home.homeDirectory}/.step/certs/mtls.pem";
|
|
backup = {
|
|
source = [
|
|
"${config.xdg.userDirs.documents}"
|
|
"/conf"
|
|
];
|
|
schedule = "*-*-* *:15,30,45:00";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
})
|
|
];
|
|
};
|
|
}
|