Add eitri - A Raspberry Pi 4
This commit is contained in:
parent
abbc8cb063
commit
add7a565fc
2 changed files with 66 additions and 0 deletions
|
@ -163,6 +163,13 @@
|
|||
(import ./machines/heimdall/configuration.nix { inherit self; })
|
||||
];
|
||||
};
|
||||
|
||||
eitri = defSystem "aarch64-linux" {
|
||||
imports = [
|
||||
(import ./machines/eitri/configuration.nix { inherit self nixpkgs; })
|
||||
nixos-hardware.nixosModules.raspberry-pi-4
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
|
59
machines/eitri/configuration.nix
Normal file
59
machines/eitri/configuration.nix
Normal file
|
@ -0,0 +1,59 @@
|
|||
{ self, nixpkgs, ... }:
|
||||
let
|
||||
pkgs = import nixpkgs { system = "aarch64-linux"; };
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
../../users/root
|
||||
../../users/erwin
|
||||
];
|
||||
|
||||
eboskma = {
|
||||
users.erwin = {
|
||||
enable = true;
|
||||
};
|
||||
desktop.enable = true;
|
||||
fonts.enable = true;
|
||||
gnome.enable = true;
|
||||
greetd.enable = true;
|
||||
networking.enable = true;
|
||||
nix-common.enable = true;
|
||||
sound.enable = true;
|
||||
systemd.enable = true;
|
||||
};
|
||||
|
||||
boot = {
|
||||
loader.raspberryPi = {
|
||||
enable = true;
|
||||
version = 4;
|
||||
};
|
||||
loader.generic-extlinux-compatible.enable = nixpkgs.lib.mkForce false;
|
||||
};
|
||||
|
||||
hardware = {
|
||||
enableRedistributableFirmware = true;
|
||||
raspberry-pi."4" = {
|
||||
fkms-3d.enable = true;
|
||||
audio.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
networking = {
|
||||
hostName = "eitri";
|
||||
networkmanager = {
|
||||
enable = true;
|
||||
wifi = {
|
||||
backend = "iwd";
|
||||
powersave = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
services.openssh.enable = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
raspberrypi-eeprom
|
||||
];
|
||||
|
||||
system.stateVersion = "22.11";
|
||||
}
|
Loading…
Reference in a new issue