flocon/nixosModules/user-rpqt.nix

29 lines
537 B
Nix

{
config,
lib,
pkgs,
...
}:
{
users.users.rpqt = {
isNormalUser = true;
createHome = lib.mkDefault true;
home = lib.mkDefault "/home/rpqt";
description = "Romain Paquet";
shell = pkgs.fish;
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGa8R8obgptefcp27Cdp9bc2fiyc9x0oTfMsTPFp2ktE rpqt@haze"
];
extraGroups = [
"wheel"
]
++ (if config.networking.networkmanager ? enabled then [ "networkmanager" ] else [ ]);
};
programs.fish.enable = true;
}