nixos/systems/raspi4/init_config.nix

41 lines
922 B
Nix
Raw Normal View History

{ config, pkgs, lib, ... }:
{
imports = [ "${fetchTarball "https://github.com/NixOS/nixos-hardware/archive/32f61571b486efc987baca553fb35df22532ba63.tar.gz" }/raspberry-pi/4" ];
fileSystems = {
"/" = {
device = "/dev/disk/by-label/NIXOS_SD";
fsType = "ext4";
options = [ "noatime" ];
};
};
hardware.raspberry-pi."4".fkms-3d.enable = true;
hardware.raspberry-pi."4".audio.enable = true;
hardware.pulseaudio.enable = true;
environment.systemPackages = with pkgs; [
raspberrypi-eeprom
];
services.openssh.enable = true;
networking.hostName = "nixos";
nix = {
package = pkgs.nixFlakes;
extraOptions = ''
experimental-features = nix-command flakes
warn-dirty = false
'';
};
users = {
mutableUsers = false;
users."nixos" = {
isNormalUser = true;
2022-09-06 19:19:05 +02:00
initialPassword = "password";
extraGroups = [ "wheel" ];
};
};
}