g5bsd/configuration.nix

33 lines
663 B
Nix
Raw Normal View History

2024-08-05 17:05:17 +01:00
{ pkgs, config, lib, ... }:
{
imports = [
./aprs.nix
];
environment.systemPackages = with pkgs; [ vim git direwolf ];
2024-08-06 10:52:45 +01:00
security.sudo.extraRules = [
{ users = [ "jim" ];
options = [ "NOPASSWD" ];
}
];
2024-08-05 17:05:17 +01:00
services.openssh = {
enable = true;
settings = {
PasswordAuthentication = false;
};
};
networking.hostName = "g5bsd-1";
users = {
users.jim = {
isNormalUser = true;
extraGroups = [ "wheel" ];
openssh.authorizedKeys.keys = [
(builtins.readFile ./jim-ed25519.pub)
];
};
};
networking = {
interfaces."eth0".useDHCP = true;
};
system.stateVersion = "24.05";
}