From b0d3cb0e8e761d9f117ba50cf1a0891910e7a519 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Mon, 15 Feb 2021 22:40:39 +0000 Subject: [PATCH] modules: move ssh keys into subdirectory --- {ssh => modules/ssh}/aramis.pub | 0 {ssh => modules/ssh}/shared.pub | 0 modules/users.nix | 2 +- 3 files changed, 1 insertion(+), 1 deletion(-) rename {ssh => modules/ssh}/aramis.pub (100%) rename {ssh => modules/ssh}/shared.pub (100%) diff --git a/ssh/aramis.pub b/modules/ssh/aramis.pub similarity index 100% rename from ssh/aramis.pub rename to modules/ssh/aramis.pub diff --git a/ssh/shared.pub b/modules/ssh/shared.pub similarity index 100% rename from ssh/shared.pub rename to modules/ssh/shared.pub diff --git a/modules/users.nix b/modules/users.nix index 1b1b709..80b9bad 100644 --- a/modules/users.nix +++ b/modules/users.nix @@ -14,7 +14,7 @@ in isNormalUser = true; extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user. openssh.authorizedKeys.keys = with builtins; let - keyDir = ../ssh; + keyDir = ./ssh; contents = readDir keyDir; names = attrNames contents; files = filter (name: contents.${name} == "regular") names;