Solution
{ config, lib, pkgs, ssh_keys, ... }:
{
imports = [
./base-config.nix
];
users.users.yourname = {
uid = 1001;
isNormalUser = true;
extraGroups = [ "wheel" ];
openssh.authorizedKeys.keys = ssh_keys;
packages = with pkgs; [
htop
] ++ extraPackages;
};
}
{ config, pkgs, ... }:
{
_module.args = {
ssh_keys = [ "ssh-ed25519 +5MWqxhi... user@device" "ssh-ed25519 AAAA... user2@device2"];
extraPackages = (with pkgs; [
ffmpeg-full
]);
};
services.xserver.xkb = {
layout = "be";
variant = "nodeadkeys";
};
time.timeZone = "Europe/Brussels";
i18n.defaultLocale = "en_GB.UTF-8";
console.keyMap = "be-latin1";
}