1
Fork 0
satellite/modules/users.nix

36 lines
638 B
Nix
Raw Normal View History

{ pkgs, ... }:
2020-04-10 13:51:37 +02:00
with import ../secrets.nix; {
# options = {
# myUser = {
# type = lib.types.string;
# default = "";
# };
# };
# config = {
# myUser = "adrielus";
# Disable asking for password for sudo
security.sudo.extraRules = [
{
users = [ "adrielus" ];
commands = [{
command = "ALL";
options = [ "SETENV" "NOPASSWD" ];
}];
}
];
2020-04-08 18:36:58 +02:00
users = {
mutableUsers = false;
users.adrielus = {
2020-04-10 13:51:37 +02:00
inherit hashedPassword;
2020-10-30 12:37:31 +01:00
extraGroups = [ "wheel" "networkmanager" "lp" "docker" ];
2020-04-10 13:51:37 +02:00
isNormalUser = true;
2021-11-29 15:00:11 +01:00
shell = pkgs.fish;
2020-04-08 18:36:58 +02:00
};
};
# };
2020-04-08 18:36:58 +02:00
}