From e68f05c78c57d2d719929b42e9659511d14af455 Mon Sep 17 00:00:00 2001 From: Devin Finlinson Date: Wed, 30 Aug 2023 22:56:23 +0200 Subject: Creating initial commit. --- modules/user-profiles/root.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 modules/user-profiles/root.nix (limited to 'modules/user-profiles/root.nix') diff --git a/modules/user-profiles/root.nix b/modules/user-profiles/root.nix new file mode 100644 index 0000000..eb95fbd --- /dev/null +++ b/modules/user-profiles/root.nix @@ -0,0 +1,20 @@ +{ config, pkgs, lib, ... }: { + + # Define a user account. Don't forget to set a password with 'passwd'. + users = { + users.root = { + isNormaluser = true; + hashedPassword = "$6$UljPNAdxZ22lP3Bc$8VaEAacZxtXM3Zji2IA7Jf5fXs9pFnAVQff1d8IbfFOKCvjibceyopOAjRXa8lXtpOSJgPW1OO1dzOspqhWnz0"; + + oppenssh.authorizedKeys.keyFiles = [ + (builtins.fetchurl { + url = "https://gitlab.com/dFinlinson.keys"; + sha256 = "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"; + }) + ]; + }; + }; + + # Allow to run nix + nix.allowedUsers = [ "root" ]; +} -- cgit v1.2.3