Last active
July 13, 2023 11:16
-
-
Save spacecowb0y/ed1c5619474a671b434bd7b79896d0da to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ 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 [email protected]" ]; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment