thrall: Prepare off-site backup

This commit is contained in:
Alexander Kobjolke 2021-12-07 20:18:18 +01:00
parent 8224f8c283
commit c47e0ae218
4 changed files with 17 additions and 15 deletions

View file

@ -21,21 +21,15 @@
outputs = { self, hm, nixpkgs, agenix, ... }@inputs: {
inherit self inputs;
nixpkgs.config.allowUnfree = true; #Predicate = pkg: builtins.elem (nixpkgs.lib.getName pkg) [ "dropbox" ];
nixosConfigurations."thrall" = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
({
nixpkgs = {
config.allowUnfree = true;
};
})
({ nixpkgs = { config.allowUnfree = true; }; })
inputs.snm.nixosModule
./modules/security.nix
./hosts/thrall
./modules/security.nix
./hosts/thrall
agenix.nixosModules.age
hm.nixosModules.home-manager
hm.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;

View file

@ -13,6 +13,7 @@
username = "alex";
homeDirectory = "/home/alex";
stateVersion = "21.05";
sessionPath = [ "$HOME/.local/bin" ];
};
home.packages = with pkgs; [
@ -40,7 +41,7 @@
smos
# editors
emacs-nox
emacs
# c/c++
clang_12
@ -73,6 +74,9 @@
};
programs = {
# better cat
bat.enable = true;
direnv = {
enable = true;
nix-direnv = {
@ -123,6 +127,4 @@
recursive = true;
source = ./local;
};
home.sessionPath = [ "$HOME/.local/bin" ];
}

View file

@ -1,5 +1,4 @@
pkgs:
{
pkgs: {
enable = true;
vimAlias = true;

View file

@ -130,6 +130,9 @@
git
#agenix.defaultPackage.x86_64-linux
restic # fast and secure backup
rclone
];
# Some programs need SUID wrappers, can be configured further or are
@ -159,6 +162,10 @@
interface=wg0
'';
};
# configure backup via restic to gdrive
services.restic.backups = { };
services.nginx.enable = true;
services.nginx = {
recommendedTlsSettings = true;