Created
May 24, 2020 19:02
-
-
Save ConradMearns/0d80bbed7415164697894bf754242b36 to your computer and use it in GitHub Desktop.
configuration
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, lib, pkgs, ... }: | |
{ | |
imports = [ | |
./hardware-pi-4.nix | |
<nixpkgs/nixos/modules/installer/cd-dvd/sd-image-raspberrypi4.nix> | |
]; | |
networking.hostName = "neri"; | |
environment.systemPackages = with pkgs; [ | |
sl # toot toot! | |
]; | |
services.openssh.enable = true; | |
services.openssh.passwordAuthentication = false; | |
services.openssh.permitRootLogin = "yes"; | |
services.openssh.challengeResponseAuthentication = false; | |
systemd.services.sshd.wantedBy = pkgs.lib.mkForce [ "multi-user.target" ]; | |
users.extraUsers.root.openssh.authorizedKeys.keys = [( builtins.readFile ./neri_rsa.pub )]; | |
services.nscd.enable = true; | |
services.avahi = { | |
enable = true; | |
publish = { | |
enable = true; | |
addresses = true; | |
workstation = true; | |
}; | |
}; | |
networking.wireless.enable = false; | |
system.stateVersion = "20.09"; | |
} |
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, lib, pkgs, ... }: | |
{ | |
imports = [ <nixpkgs/nixos/modules/installer/scan/not-detected.nix> ]; | |
nixpkgs.system = "aarch64-linux"; | |
boot.initrd.availableKernelModules = [ ]; | |
boot.initrd.kernelModules = [ ]; | |
boot.kernelModules = [ ]; | |
boot.extraModulePackages = [ ]; | |
boot.loader.grub.enable = false; | |
boot.loader.raspberryPi.enable = true; | |
boot.loader.raspberryPi.version = 4; | |
boot.kernelPackages = pkgs.linuxPackages_rpi4; | |
fileSystems = { | |
"/" = { | |
device = "/dev/disk/by-label/NIXOS_SD"; | |
fsType = "ext4"; | |
}; | |
"/boot" = { | |
device = "/dev/disk/by-label/FIRMWARE"; | |
# device = "/dev/mmcblk0p1"; | |
fsType = "vfat"; | |
}; | |
}; | |
# swapDevices = [{ device = "/swapfile"; size = 2048; }]; | |
swapDevices = [ ]; | |
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment