temp
This commit is contained in:
@@ -5,19 +5,19 @@ in
|
||||
{
|
||||
boot = {
|
||||
loader = {
|
||||
systemd-boot.enable = lib.mkForce true;
|
||||
systemd-boot.enable = lib.mkForce false;
|
||||
efi.canTouchEfiVariables = false;
|
||||
generic-extlinux-compatible.enable = lib.mkForce false;
|
||||
generic-extlinux-compatible.enable = lib.mkForce true;
|
||||
};
|
||||
plymouth.enable = true;
|
||||
kernelPackages = pkgs.linuxPackages_latest;
|
||||
plymouth.enable = false;
|
||||
kernelPackages = pkgs.linuxPackages_rpi4;
|
||||
kernelModules = [ "i2c-dev" "i2c-bcm2835" ];
|
||||
initrd.kernelModules = [ "i2c-dev" "i2c-bcm2835" ];
|
||||
};
|
||||
environment.systemPackages = [ uefi_pi4 ];
|
||||
# environment.systemPackages = [ uefi_pi4 ];
|
||||
|
||||
# Copy UEFI firmware files to the boot partition
|
||||
system.activationScripts.installUEFIFirmware.text = ''
|
||||
cp -r ${uefi_pi4}/share/uefi_rpi4/* /boot/firmware/
|
||||
'';
|
||||
# system.activationScripts.installUEFIFirmware.text = ''
|
||||
# cp -r ${uefi_pi4}/share/uefi_rpi4/* /boot/firmware/
|
||||
# '';
|
||||
}
|
||||
|
||||
@@ -57,16 +57,17 @@ in
|
||||
|
||||
environment = {
|
||||
systemPackages = with pkgs; [
|
||||
i2c-tools
|
||||
libraspberrypi
|
||||
raspberrypi-eeprom
|
||||
raspberrypifw
|
||||
raspberrypiWirelessFirmware
|
||||
raspberrypi-armstubs
|
||||
];
|
||||
etc = {
|
||||
"ssh/ssh_host_ed25519_key".source = config.sops.secrets."pi4/sys-priv-key".path;
|
||||
"ssh/ssh_host_ed25519_key.pub".source = config.sops.secrets."pi4/sys-public-key".path;
|
||||
};
|
||||
# etc = {
|
||||
# "ssh/ssh_host_ed25519_key".source = config.sops.secrets."pi4/sys-priv-key".path;
|
||||
# "ssh/ssh_host_ed25519_key.pub".source = config.sops.secrets."pi4/sys-public-key".path;
|
||||
# };
|
||||
};
|
||||
|
||||
users = {
|
||||
|
||||
@@ -2,19 +2,19 @@
|
||||
{
|
||||
hardware = {
|
||||
raspberry-pi."4" = {
|
||||
apply-overlays-dtmerge.enable = false;
|
||||
apply-overlays-dtmerge.enable = true;
|
||||
audio.enable = false;
|
||||
backlight.enable = false;
|
||||
bluetooth.enable = false;
|
||||
bluetooth.enable = true;
|
||||
dwc2.enable = true;
|
||||
i2c0.enable = false;
|
||||
i2c1.enable = false;
|
||||
i2c0.enable = true;
|
||||
i2c1.enable = true;
|
||||
leds = {
|
||||
eth.disable = false;
|
||||
act.disable = false;
|
||||
pwr.disable = false;
|
||||
};
|
||||
fkms-3d.enable = false;
|
||||
fkms-3d.enable = true;
|
||||
xhci.enable = true;
|
||||
};
|
||||
deviceTree.filter = "bcm2711-rpi-4*.dtb";
|
||||
|
||||
@@ -5,7 +5,6 @@ in
|
||||
{
|
||||
sops = {
|
||||
defaultSopsFile = ../../secrets/pi4-secrets.yaml;
|
||||
# age.keyFile = "${config.home.homeDirectory}/.config/sops/age/keys.txt";
|
||||
age = {
|
||||
generateKey = true;
|
||||
sshKeyPaths = [ "/etc/ssd/ssh_host_ed25519_key" ];
|
||||
|
||||
@@ -11,13 +11,13 @@ in
|
||||
{
|
||||
imports = [
|
||||
./boot.nix
|
||||
./hardware-configuration.nix
|
||||
# ./hardware-configuration.nix
|
||||
./impermanence.nix
|
||||
./networking.nix
|
||||
./services.nix
|
||||
./sops.nix
|
||||
|
||||
./hass.nix
|
||||
# ./hass.nix
|
||||
];
|
||||
|
||||
# Enable nix flakes and nix-command tools
|
||||
|
||||
Reference in New Issue
Block a user