From 0b099c7250580e33610bd4ad56879107dcf56321 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 4 Apr 2018 22:43:34 +0200 Subject: Users on odin --- odin.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'odin.nix') diff --git a/odin.nix b/odin.nix index 21054dbc..ffff5b9a 100644 --- a/odin.nix +++ b/odin.nix @@ -8,6 +8,7 @@ imports = [ # Include the results of the hardware scan. ./odin/hw.nix + ./users.nix ]; # Use the GRUB 2 boot loader. @@ -46,10 +47,16 @@ ]; }; + users.extraUsers.root = let + template = import ./users/gkleen.nix; + in { + inherit (template) shell; + openssh.authorizedKeys.keyFiles = template.openssh.authorizedKeys.keyFiles; + }; + # This value determines the NixOS release with which your system is to be # compatible, in order to avoid breaking some software such as database # servers. You should change this only after NixOS release notes say you # should. system.stateVersion = "18.09"; # Did you read the comment? - } -- cgit v1.2.3