From e7c4000fbfce86838376a3a41235746065e3c6fd Mon Sep 17 00:00:00 2001 From: glenn Date: Mon, 24 Jun 2024 08:12:35 +0200 Subject: [PATCH] working restic jobb --- configuration.nix | 4 +++- home/sondell.nix | 5 +++++ nextcloud.nix | 1 + 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/configuration.nix b/configuration.nix index 8a265ab..df371b9 100644 --- a/configuration.nix +++ b/configuration.nix @@ -108,12 +108,14 @@ home = "/home/sondell"; isNormalUser = true; description = "sondell"; - extraGroups = ["networkmanager" "wheel"]; + extraGroups = ["networkmanager" "wheel" "backup"]; packages = with pkgs; [ firefox # thunderbird ]; }; + users.groups."backup".gid = 1337; + users.users.root = { isNormalUser = false; diff --git a/home/sondell.nix b/home/sondell.nix index 584375f..e35b39d 100644 --- a/home/sondell.nix +++ b/home/sondell.nix @@ -9,6 +9,11 @@ # paths it should manage. home.username = "sondell"; home.homeDirectory = "/home/sondell"; + programs.ssh.addKeysToAgent = "yes"; + programs.ssh.enable = true; + programs.ssh.matchBlocks."*".identityFile = [ + "/home/sondell/.ssh/tulpan" + ]; # This value determines the Home Manager release that your # configuration is compatible with. This helps avoid breakage diff --git a/nextcloud.nix b/nextcloud.nix index 64ffef8..c9ec935 100644 --- a/nextcloud.nix +++ b/nextcloud.nix @@ -38,6 +38,7 @@ in paths = [ "/pool/var/lib/nextcloud" ]; + user = "sondell"; timerConfig.onCalendar = "02:05"; }; };