33 lines
1,007 B
Nix
33 lines
1,007 B
Nix
|
{ config, pkgs, ... }:
|
||
|
|
||
|
{
|
||
|
environment.systemPackages = with pkgs; [ git curl ];
|
||
|
programs.neovim.enable = true;
|
||
|
programs.neovim.viAlias = true;
|
||
|
programs.fish.shellInit = "set -U fish_greeting";
|
||
|
|
||
|
users.defaultUserShell = pkgs.fish;
|
||
|
|
||
|
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"
|
||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIATd0L/QJQOk9BR/H+TEo1X1t/ZxtxANNXXiTYf5+RbD jdejeu@archlife"
|
||
|
];
|
||
|
};
|
||
|
|
||
|
# 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
|
||
|
shell = pkgs.fish;
|
||
|
};
|
||
|
}
|