nixos-configs/common/users/default.nix

32 lines
927 B
Nix
Raw Permalink Normal View History

2021-11-13 09:13:41 +01:00
{ config, pkgs, ... }:
{
environment.systemPackages = with pkgs; [ fzf git htop rsync ripgrep zoxide ];
programs.neovim.enable = true;
programs.neovim.viAlias = true;
2021-11-14 13:17:32 +01:00
programs.fish.shellInit = "set -U fish_greeting";
2021-11-13 09:13:41 +01:00
2021-11-13 09:43:43 +01:00
users.defaultUserShell = pkgs.fish;
2021-11-13 09:13:41 +01:00
users.extraUsers.jdejeu = {
isNormalUser = true;
home = "/home/jdejeu";
description = "Julius";
extraGroups = [ "wheel" ];
shell = pkgs.fish;
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAJBY9eQlR/JRnjVC2wKWQ+o02wDlGUlSgN/4e3i6ans PC"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINrSvbUoRc7K47cD6TIZUdVjExuNpv6JUzjvUwRtRVj9 Laptop"
2021-11-13 09:13:41 +01:00
];
};
# Configure the root account
users.extraUsers.root = {
# Allow my SSH keys for logging in as root.
openssh.authorizedKeys.keys =
config.users.users.jdejeu.openssh.authorizedKeys.keys;
# Also use zsh for root
2021-11-13 09:43:43 +01:00
shell = pkgs.fish;
2021-11-13 09:13:41 +01:00
};
}