diff options
| author | Devin Finlinson <devin.finlinson@pm.me> | 2023-08-30 22:56:23 +0200 |
|---|---|---|
| committer | Devin Finlinson <devin.finlinson@pm.me> | 2023-08-30 22:56:23 +0200 |
| commit | e68f05c78c57d2d719929b42e9659511d14af455 (patch) | |
| tree | 15170de3c0e796b40b51674ef59a6dc122f8f7b9 /modules/user-profiles/defin.nix | |
Creating initial commit.
Diffstat (limited to 'modules/user-profiles/defin.nix')
| -rw-r--r-- | modules/user-profiles/defin.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/modules/user-profiles/defin.nix b/modules/user-profiles/defin.nix new file mode 100644 index 0000000..e3f2a01 --- /dev/null +++ b/modules/user-profiles/defin.nix @@ -0,0 +1,25 @@ +{config, pkgs, lib, ... }: { + + # Define a user account. Don't forget to set a password with ‘passwd’. + users = { + + mutableUsers = false; + users.defin = { + isNormalUser = true; + description = "Devin Finlinson"; + extraGroups = [ "wheel" "builders" "video"]; # Enable ‘sudo’ for the user. + shell = pkgs.nushell; + hashedPassword = "$6$UljPNAdxZ22lP3Bc$8VaEAacZxtXM3Zji2IA7Jf5fXs9pFnAVQff1d8IbfFOKCvjibceyopOAjRXa8lXtpOSJgPW1OO1dzOspqhWnz0"; + + oppenssh.authorizedKeys.keyFiles = [ + (builtins.fetchurl { + url = "https://gitlab.com/dFinlinson.keys"; + sha256 = "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"; + }) + ]; + }; + }; + + # Allow to run nix + nix.allowedUsers = [ "defin" ]; +}
\ No newline at end of file |
