g5bsd/configuration.nix

37 lines
746 B
Nix
Raw Permalink Normal View History

2024-08-05 17:05:17 +01:00
{ pkgs, config, lib, ... }:
{
imports = [
./aprs.nix
];
2024-08-06 11:39:03 +01:00
environment.systemPackages = with pkgs; [ alsa-utils vim git direwolf ];
2024-08-06 11:01:11 +01:00
security.sudo.extraRules= [
{ users = [ "jim" ];
commands = [
{ command = "ALL" ;
options= [ "NOPASSWD" ];
}
];
2024-08-06 10:52:45 +01:00
}
];
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";
}