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

View file

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

View file

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

View file

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