Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- { config, lib, pkgs, inputs, outputs, modulesPath, ... }:
- {
- imports = [
- inputs.nixos-hardware.nixosModules.raspberry-pi-4
- (modulesPath + "/installer/sd-card/sd-image-aarch64.nix")
- ];
- nixpkgs.overlays = [
- (final: super: {
- makeModulesClosure = x:
- super.makeModulesClosure (x // { allowMissing = true; });
- })
- ];
- boot.kernelPackages = lib.mkForce pkgs.linuxKernel.packages.linux_rpi4;
- boot.supportedFilesystems = lib.mkForce [ "vfat" ];
- sdImage.compressImage = false;
- networking.hostName = "nixos-pi";
- services.openssh.enable = true;
- security.sudo.wheelNeedsPassword = false;
- users.users.Coolio = {
- isNormalUser = true;
- initialPassword = "hunter2";
- extraGroups = [ "wheel" ];
- openssh.authorizedKeys.keys = [
- {public-ssh-key-here}
- ];
- };
- system.stateVersion = "24.11";
- nixpkgs.hostPlatform = "aarch64-linux";
- }
Advertisement
Add Comment
Please, Sign In to add comment