nixos-config/base/users.nix

17 lines
542 B
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ config, lib, pkgs, ... }:
{
users.mutableUsers = false;
users.users.root = {
hashedPassword = lib.fileContents ../secrets/shadow-hashed-password-root;
};
users.users.alarsyo = {
hashedPassword = lib.fileContents ../secrets/shadow-hashed-password-alarsyo;
isNormalUser = true;
extraGroups = [ "wheel" ]; # Enable sudo for the user.
shell = pkgs.fish;
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIH3rrF3VSWI4n4cpguvlmLAaU3uftuX4AVV/39S/8GO9 alarsyo@thinkpad"
];
};
}