From e3fbe28103d98669785af6b28a7de0435a3e8418 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Schr=C3=B6ter?= Date: Sun, 15 May 2022 15:39:12 +0200 Subject: [PATCH] feat(home-server): rename felix-rpi4 to home-server --- flake.nix | 8 ++++---- services/restic/rpi4.nix | 4 +--- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/flake.nix b/flake.nix index 3f843cb..1463d47 100644 --- a/flake.nix +++ b/flake.nix @@ -137,12 +137,12 @@ ]; }; - nixosConfigurations.felix-rpi4 = nixpkgs.lib.nixosSystem { + nixosConfigurations.home-server = nixpkgs.lib.nixosSystem { system = "aarch64-linux"; modules = [ nixpkgs.nixosModules.notDetected nixos-hardware.nixosModules.raspberry-pi-4 - (lib.createSystem "felix-rpi4" { + (lib.createSystem "home-server" { hardwareConfig = ./hardware/rpi4.nix; config = ./rpi4.nix; }) @@ -159,12 +159,12 @@ ]; }; - deploy.nodes.felix-rpi4 = { + deploy.nodes.home-server = { hostname = "192.168.1.234"; profiles.system = { user = "felschr"; path = deploy-rs.lib.aarch64-linux.activate.nixos - self.nixosConfigurations.felix-rpi4; + self.nixosConfigurations.home-server; }; }; diff --git a/services/restic/rpi4.nix b/services/restic/rpi4.nix index 9c65a59..b2a76f8 100644 --- a/services/restic/rpi4.nix +++ b/services/restic/rpi4.nix @@ -13,9 +13,7 @@ in { environment.systemPackages = with pkgs; [ restic ]; services.restic.backups.full = resticLib.resticConfig { - name = "rpi4"; - # TODO migrate old repository - # repository = "b2:felschr-rpi4-backup:/full"; + name = "home-server"; ripgrep = true; paths = [ "/etc/nixos" "/var/lib" "/home" ]; ignorePatterns = [