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 ++++++++- users.nix | 3 +++ 2 files changed, 11 insertions(+), 1 deletion(-) 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? - } diff --git a/users.nix b/users.nix index deab35a1..6f21c51d 100644 --- a/users.nix +++ b/users.nix @@ -19,6 +19,9 @@ let "sgoebels" = import ./users/sgoebels.nix; "mtrinh" = import ./users/mtrinh.nix; }; + odin = { + "mherold" = import ./users/mherold.nix; + }; }; host = config.networking.hostName; in { -- cgit v1.2.3