summaryrefslogtreecommitdiff
path: root/modules/users/defin.nix
diff options
context:
space:
mode:
authorDevin Finlinson <devin.finlinson@pm.me>2023-11-20 05:49:43 -0700
committerDevin Finlinson <devin.finlinson@pm.me>2023-11-20 05:49:43 -0700
commit96a618e44b8926fe0a2091ab03c31d0426d52b54 (patch)
treece8fdf9223219b43a3e822226fd0ce61c7b9804a /modules/users/defin.nix
parent2fb6e7eb04f4d731db8ca09ced6aa56703e75dbf (diff)
renamed folder for faster typing and thinking
Diffstat (limited to 'modules/users/defin.nix')
-rw-r--r--modules/users/defin.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/modules/users/defin.nix b/modules/users/defin.nix
new file mode 100644
index 0000000..999332a
--- /dev/null
+++ b/modules/users/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" "input"]; # Enable ‘sudo’ for the user.
+ shell = pkgs.nushell;
+ hashedPassword = "$6$UljPNAdxZ22lP3Bc$8VaEAacZxtXM3Zji2IA7Jf5fXs9pFnAVQff1d8IbfFOKCvjibceyopOAjRXa8lXtpOSJgPW1OO1dzOspqhWnz0";
+
+ openssh.authorizedKeys.keyFiles = [
+ (builtins.fetchurl {
+ url = "https://git.wormcar.gay/devinf.keys";
+ sha256 = "1jm206w3j896zl2v137zmri4v46kq9wpj4fv17bfa023xm2qy2bh";
+ })
+ ];
+ };
+ };
+
+ # Allow to run nix
+ nix.settings.allowed-users = [ "defin" ];
+} \ No newline at end of file