Skip to content

Instantly share code, notes, and snippets.

@spacecowb0y
Last active July 13, 2023 11:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spacecowb0y/ed1c5619474a671b434bd7b79896d0da to your computer and use it in GitHub Desktop.
Save spacecowb0y/ed1c5619474a671b434bd7b79896d0da to your computer and use it in GitHub Desktop.
{ config, libs, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
vim
];
system.stateVersion = "23.05";
imports =
[
./hardware-configuration.nix
];
boot = {
loader.grub.enable = false;
loader.raspberryPi.enable = true;
loader.raspberryPi.version = 4;
kernelPackages = pkgs.linuxPackages_rpi4;
};
console = {
font = "Lat2-Terminus16";
keyMap = "us";
};
# i18n.defaultLocale = "en_US.UTF-8";
# time.timeZone = "Europe/Berlin";
networking = {
hostName = "nixos";
useDHCP = false;
interfaces.eth0.useDHCP = true;
};
services.openssh = {
enable = true;
permitRootLogin = "yes";
passwordAuthentication = false;
challengeResponseAuthentication = false;
};
systemd.services.sshd.wantedBy = pkgs.lib.mkForce [ "multi-user.target" ];
users.users.diego = {
isNormalUser = true;
home = "/home/diego";
extraGroups = [ "wheel" "networkmanager" ];
openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKl63qZ8eLOPzzEKcDQeSo2LpW9G9VxVwBP/jdrgbqwT yo@01d.me" ];
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment