nixos-config/base/users.nix

26 lines
642 B
Nix
Raw Normal View History

2021-02-14 13:18:13 +01:00
{ config, lib, pkgs, ... }:
2021-02-14 13:42:43 +01:00
let
secrets = config.my.secrets;
in
2021-02-14 13:18:13 +01:00
{
users.mutableUsers = false;
users.users.root = {
2021-02-14 13:42:43 +01:00
hashedPassword = secrets.shadow-hashed-password-root;
2021-02-14 13:18:13 +01:00
};
users.users.alarsyo = {
2021-02-14 13:42:43 +01:00
hashedPassword = secrets.shadow-hashed-password-alarsyo;
2021-02-14 13:18:13 +01:00
isNormalUser = true;
2021-02-19 21:46:19 +01:00
extraGroups = [
"media"
2021-04-16 21:33:48 +02:00
"networkmanager"
"video" # for `light` permissions
"docker"
2021-02-19 21:46:19 +01:00
"wheel" # Enable sudo for the user.
];
2021-02-14 13:18:13 +01:00
shell = pkgs.fish;
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIH3rrF3VSWI4n4cpguvlmLAaU3uftuX4AVV/39S/8GO9 alarsyo@thinkpad"
];
};
}