34 lines
745 B
Nix
34 lines
745 B
Nix
{ pkgs, ... }:
|
||
{
|
||
imports = [
|
||
<home-manager/nixos>
|
||
];
|
||
|
||
users.users.geoffrey = {
|
||
isNormalUser = true;
|
||
extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user.
|
||
shell = pkgs.zsh;
|
||
|
||
initialPassword = "cartable"; # DEBUG
|
||
openssh.authorizedKeys.keys = [
|
||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPE41gxrO8oZ5n3saapSwZDViOQphm6RzqgsBUyA88pU geoffrey@frogeye.fr"
|
||
];
|
||
};
|
||
|
||
# Won't allow to set the shell otherwise,
|
||
# even though home-manager sets it
|
||
programs.zsh.enable = true;
|
||
|
||
home-manager = {
|
||
users.geoffrey = { pkgs, ... }: {
|
||
imports = [
|
||
../hm/loader.nix
|
||
];
|
||
};
|
||
# Makes VMs able to re-run
|
||
useUserPackages = true;
|
||
# Adds consistency
|
||
useGlobalPkgs = true;
|
||
};
|
||
}
|