{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 = "14d35z9r6gakfavf5qljjk2iv8cm09n3x2ajgbs91b1hsga3midk"; }) ]; }; }; # Allow to run nix nix.settings.allowed-users = [ "defin" ]; }